.xlsm file to always open in new excel instance

vineet78

Board Regular
Joined
Oct 22, 2017
Messages
74
Hi

i have a project .xlsm file which opens in existing Excel sessoin.
I use excel 2010

Problem is that if there are already open excel files, this .xslm file runs very slow.
cAN I build a code within this file which will open this file in a new session only.

Many thanks in advance.

Regards
Vineet
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hello

I am using the below code now but it is opening separate file and that also read only.
Then it is taking 30 seconds to make file available for read/write.

Dim xlApp As Application
Dim filepath As String
Dim filename As String
filepath = ActiveWorkbook.Path
filename = ActiveWorkbook.Name
Set xlApp = CreateObject("Excel.Application")
xlApp.Visible = True
xlApp.Workbooks.Open filepath & "/" & filename
ActiveWorkbook.Save
ActiveWorkbook.Close
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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