Force Excel to open new instance

tiredofit

Well-known Member
Joined
Apr 11, 2013
Messages
1,926
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have used the command:

Code:
Application.IgnoreRemoteRequests = True

successfully to force Excel to open a new instance of Excel if another file is opened.

The above was tested on Excel 2013 but it seems this does not work in Excel 2016, ie subsequent Excel files still open in the same instance of Excel.

Can someone please confirm this?

Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
i dont see how that line would make a new XL instance.
these lines do:

Code:
Private mXL As Excel.Application

sub btnNew_click()
Set mXL = CreateObject("excel.application")
mXL.Visible = True
mXL.Workbooks.Add
end sub
 
Upvote 0
Imagine I have workbook A.

If I open workbook A (manually), then go to Windows Explorer and double click another Excel file, I want that Excel file to be opened in a separate instance of Excel to that of workbook A.

That is what my code did for Excel 2013 but it doesn't for Excel 2016.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top