Open Excel in Two Different Threads

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
3,130
Office Version
  1. 365
Platform
  1. Windows
I have macros that run Scripts in SAP. Some of these SAP reports take 5 to 10 minutes. When the script is running, Excel locks up and I have to wait for it to finish I would like to open a separate version of Excel and run the scripts from there so I can continue my other work. Is this possible?

Jeff
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
1. Windows + R and in the window type
Code:
excel /x
2. click on the Start menu, find the Excel icon in the list, before you click on the Excel icon to launch it hold down the LeftALT key.

Artik
 
Upvote 0
Solution
Most excellent Artik, thank you. Oh, BTW, you have a bug on your picture ;)

So I thought I would try to open the new thread using vba, and it works. Open new thread, run SAP macro in new thread. TaDa!

VBA Code:
Sub NewExcelThread()
  Shell "Excel /x", vbNormalFocus
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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