G
grt
hi,
I'm trying to avoid the chance that my VBA project will execute procedures
for sheets it shouldn't touch. I understood that using
'ThisWorkbook.Activate' in my code will work in such a way that the code
will always solely run in the workbook within which the procedure runs.
Though, while testing this I found out that with CMD-` I can get a different
window in front of me whereby the commands do work. Meaning, the front-
most window is changed according to the procedure that starts with
something like:
thisworkbook.activate
.....
Anybody the same experience? Solutions?
I'm trying to avoid the chance that my VBA project will execute procedures
for sheets it shouldn't touch. I understood that using
'ThisWorkbook.Activate' in my code will work in such a way that the code
will always solely run in the workbook within which the procedure runs.
Though, while testing this I found out that with CMD-` I can get a different
window in front of me whereby the commands do work. Meaning, the front-
most window is changed according to the procedure that starts with
something like:
thisworkbook.activate
.....
Anybody the same experience? Solutions?