ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Locking the excel running the macro (https://www.excelbanter.com/excel-programming/364832-locking-excel-running-macro.html)

[email protected]

Locking the excel running the macro
 
Is it possible to "lock" the excel running a starttimer macro so no
other workbooks can be opened until the stoptimer is run? I have a
starttimer that is to run for 4 hours every 5 minutes. I have noticed
that if I get something through email it will open in that application
and give me an error. Any help will be appreciated.


[email protected]

Locking the excel running the macro
 
Any help will be appreciated.


wrote:
Is it possible to "lock" the excel running a starttimer macro so no
other workbooks can be opened until the stoptimer is run? I have a
starttimer that is to run for 4 hours every 5 minutes. I have noticed
that if I get something through email it will open in that application
and give me an error. Any help will be appreciated.



NickHK

Locking the excel running the macro
 
You can start you own instance of Excel that remains hidden eg.
Dim MyExcel As Excel.Application
Set MyExcel=New Excel.Application
....etc
MyExcel.IgnoreRemoterequests may be useful also.

NickHK

wrote in message
oups.com...
Any help will be appreciated.


wrote:
Is it possible to "lock" the excel running a starttimer macro so no
other workbooks can be opened until the stoptimer is run? I have a
starttimer that is to run for 4 hours every 5 minutes. I have noticed
that if I get something through email it will open in that application
and give me an error. Any help will be appreciated.






All times are GMT +1. The time now is 09:51 AM.

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