I am testing each drawings that I open (actually there is no "on open" event, just an (Activate). So...each time I open or switch to a dwg my code runs.
The code just searches for a block and either replaces it with the latest version or just updates the year.
It works great except when I have several dwgs open with several layouts in each dwg.
I was trying to program a couple of flags but could not figure out how to get them to work...
1. Once a dwg is opened to assign a temporary flag to that dwg so that it will not run the code each time I switch to that dwg. all it will do is first check that flag and if True, exit sub, if false, continue.
2. To put my code in an event that will only run when a dwg is first opened......
Any ideas or thoughts,
Thanks is advance...