We have 25 users using an excel VBA application with 4 buttons which are activeX controls.
For only 2 users, only under their own profiles and only on their own machines, Excel fails to recognize the buttons, goes into design mode, and renames the command buttons, and does so every time it launches.
So, this is what it looks like.
ORIGINAL configuration: cmd_A, cmd_B, cmd_C, cmd_D:
with events cmd_A_click, cmd_B_click, cmd_C_click, cmd_D_click:
Then, when these two users launch the file, Excel renames the buttons.
CommandButton1,CommandButton2, CommandButton3,CommandButton4
then the next time it launches:
CommandButton5, CommandButton6, CommandButton7, CommandButton8
and so on, every time four more progressive iterations.
NOTE: No new buttons are being created, Excel is just renaming the buttons and then, when troubleshooting and trying to force code execution, we get the error of "cannot execute in design mode"
Now, for the interesting part:
It ONLY happens with these two users, on their two machines with their profiles:
- Their profiles will not corrupt the file when executed on another machine
- Other profiles on their machines will not corrupt the file
The machines have been wiped and reimaged, user rights have been elevated to admin, desktop support, networking and application support.
None of us can identify any cause, only the effect.
Our entire team is out of ideas, so I'm posting this looking for anything else to try.
So, the question:
What else can we try?