Happy Holidays Excel Experts!
I am curious to know if anyone has thoughts on the following issue I'm encountering.
I have 4 modules that each run a separate routine. The first module is the master. It calls the second module which in turns calls the third which calls the fourth and final routine- like dominoes.
My issue is that I've assigned a form button to launch the master module and the outcome is unexpected- it appears as though the 4th module doesn't get called. Yet, when I click inside the master module in the developer window and press F5 the subs all run as intended.
I added a 5th module which just creates a message box to confirm it got triggered and call it from the end of the 4th module. Both the form button and pressing F5 result in seeing the message.
However, it appears as though I'm getting 2 different results from the same code which is driving me bonkers.
I've added new form buttons an assigned them to the master module to see if that would help and it didn't. I am using a form button to run the 4th module and it works as intended.
I understand that not seeing code isn't helpful but in this instance I know the code works when triggered by F5 but not with a form control. I've never encountered anything like this before. Any ideas?
Cheers,
Matt
I am curious to know if anyone has thoughts on the following issue I'm encountering.
I have 4 modules that each run a separate routine. The first module is the master. It calls the second module which in turns calls the third which calls the fourth and final routine- like dominoes.
My issue is that I've assigned a form button to launch the master module and the outcome is unexpected- it appears as though the 4th module doesn't get called. Yet, when I click inside the master module in the developer window and press F5 the subs all run as intended.
I added a 5th module which just creates a message box to confirm it got triggered and call it from the end of the 4th module. Both the form button and pressing F5 result in seeing the message.
However, it appears as though I'm getting 2 different results from the same code which is driving me bonkers.
I've added new form buttons an assigned them to the master module to see if that would help and it didn't. I am using a form button to run the 4th module and it works as intended.
I understand that not seeing code isn't helpful but in this instance I know the code works when triggered by F5 but not with a form control. I've never encountered anything like this before. Any ideas?
Cheers,
Matt