I know that I can open a file in a new instance of Excel using VBA from a source file:
Public appxl As Application
Sub OpenAnotherInstanceXL()
Set appxl = CreateObject("Excel.Application")
With appxl
.Workbooks.Open ThisWorkbook.Path & "\" & "OpenMe.xls"
.Visible = True
End With
End Sub
What I’d like to know is if it is possible to have a file open in a new instance of Excel when selected from Windows Explorer while my source file is open. What I’d like to accomplish is to have my source file always be the only file open in its own instance. Is there any way to accomplish this?
Public appxl As Application
Sub OpenAnotherInstanceXL()
Set appxl = CreateObject("Excel.Application")
With appxl
.Workbooks.Open ThisWorkbook.Path & "\" & "OpenMe.xls"
.Visible = True
End With
End Sub
What I’d like to know is if it is possible to have a file open in a new instance of Excel when selected from Windows Explorer while my source file is open. What I’d like to accomplish is to have my source file always be the only file open in its own instance. Is there any way to accomplish this?