Open a workbook as another Excel process

G

Guest

Hi,

Is there way to made a workbook (workbook A) always open in a seperate Excel
process if another Excel process is running already via VBA?

Is there way to prevent other workbook from openning inside (WOrkbook A) via
VBA?

Thanks
 
S

Sharad

If you lanuch the workbook using shell command to start excel, then it
will be open in seperate execel process. e.g. if the name is
workbooA.xls, located under My Documents in C:\ drive, you could use
below Shell code:

myIDnum = Shell("C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE
C:\My Dcouments\WorkbookA.xls", vbNormalFocus)

Is there way to prevent other workbook from openning
inside (WOrkbook A) via
VBA?
I don't think so. If the user double clicks on an excel file it will
open in the last excel process started.

Sharad
 
S

Stephen Bullen

Hi Augustus,
Is there way to prevent other workbook from openning inside (WOrkbook A) via
VBA?

Application.IgnoreRemoteRequests=True

will stop Explorer opening new files in that instance of Excel - but be sure to
set it back to False when you've finished with it!

Regards

Stephen Bullen
Microsoft MVP - Excel
www.oaltd.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top