Scenario
I have a file that I am opening as ReadOnly using the following code.
Set wbRead = Workbooks.Open(FilePath, ReadOnly:=True)
Here the FilePath is a variable that tells the file location of that file
Problem
The issue I am facing is, if the user run macro second time without closing this already opened readonly file, it is giving runtime error due to having similar file name opened
What I need
Is there any way whereby excel can open a file as readonly, but the opened file shows some random name? Eg: Actual file name is A. But when excel open it as readonly, it open as A123? 123 is like a random number.