ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Program (https://www.excelbanter.com/excel-programming/356857-program.html)

Jason Zischke

Program
 
Hi all,

Is there a way to prohibit another excel file opening up in the same window
as the program that I have created?

Jason

Jim Thomlinson

Program
 
Nope... Having multiple instances of Excel running is problematic anyways. My
recommendation would be to figure out how to do whatever you want to do in
one instances.
--
HTH...

Jim Thomlinson


"Jason Zischke" wrote:

Hi all,

Is there a way to prohibit another excel file opening up in the same window
as the program that I have created?

Jason


NickHK

Program
 
Jason,
If you use Application Level Events you can trigger code that runs when a WB
is opened.
However it has no cancel, so would have react after it is open.

See www.cpearson.com/excel/AppEvent.htm

NickHK

"Jason Zischke" wrote in message
...
Hi all,

Is there a way to prohibit another excel file opening up in the same

window
as the program that I have created?

Jason




Vic Eldridge[_3_]

Program
 

Application.IgnoreRemoteRequests = True
will prevent other files from being opened when you double-click them in
Windows Explorer, if that's what you mean.


Regards,
Vic Eldridge


"Jason Zischke" wrote:

Hi all,

Is there a way to prohibit another excel file opening up in the same window
as the program that I have created?

Jason



All times are GMT +1. The time now is 10:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com