max76
06-05-2017, 01:42 PM
Hi everyone,
I'm writing because I've encountered a problem. I have attached a file so that you can better understand what I'm talking about. My VBA project is much bigger and more complext but I created a very very small extract to focus on the problem I bumped into.
I have a template that generates a document with CC. If you click on the CC_2 (to simplify everything I used an "OnEnter" event) you can see that the macro is working fine (the message box is displayed). However, if you click on the CC on the left-hand side (this will add an ActiveX button to the active document via VBA) all the CC macros are killed!! As a matter of fact entering the CC's won't trigger any macro anymore.
I've done some reading online but I didn't find anything that can help. Someone was mentioning that variables declared inside subroutines/functions might be disabled but this is not the case since I did not declare any variables. Yet, the macros are totally killed.
I'd very grateful if someone could shed some light on this disappointing glitch.
Thank you in advance for your support.
Massimo
I'm writing because I've encountered a problem. I have attached a file so that you can better understand what I'm talking about. My VBA project is much bigger and more complext but I created a very very small extract to focus on the problem I bumped into.
I have a template that generates a document with CC. If you click on the CC_2 (to simplify everything I used an "OnEnter" event) you can see that the macro is working fine (the message box is displayed). However, if you click on the CC on the left-hand side (this will add an ActiveX button to the active document via VBA) all the CC macros are killed!! As a matter of fact entering the CC's won't trigger any macro anymore.
I've done some reading online but I didn't find anything that can help. Someone was mentioning that variables declared inside subroutines/functions might be disabled but this is not the case since I did not declare any variables. Yet, the macros are totally killed.
I'd very grateful if someone could shed some light on this disappointing glitch.
Thank you in advance for your support.
Massimo