Hi Govind,
The file looks proper to me. However, at one place in the Auto_Open module, I have written the code:
I changed the path of the log file to my comp's local path and tried running your macro. It is running perfectly and without any issues.
I have added a couple of message boxes to indicate Enabling and Disabling of the function.
In case there is an error in running the function and you get the Debug/End window, the Global/Public values are lost. I guess something like this must have happened in your case.
Regards,
Karan
Bookmarks