ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Forcing Events to happen (https://www.excelbanter.com/excel-programming/291870-forcing-events-happen.html)

Steven Revell

Forcing Events to happen
 
Hi

Is there anyway to make sure events happen once the workbook has been opened with macros enabled

I need this to work in XP and 97 verisons of Excel

I always want the open, beforesave and beforeclose events to always occur no matter whether somone has type enableevents = false

Jan Karel Pieterse

Forcing Events to happen
 
Hi Steven,

Is there anyway to make sure events happen once the workbook has been opened with macros enabled?

I need this to work in XP and 97 verisons of Excel.

I always want the open, beforesave and beforeclose events to always occur no matter whether somone has type enableevents = false


You could set an ontime event that fires a macro that sets the EnableEvents property back to True each time.

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com



All times are GMT +1. The time now is 06:32 PM.

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