BobtBuilder
New Member
- Joined
- Sep 1, 2023
- Messages
- 45
- Office Version
- 365
- Platform
- Windows
I have a worksheet update that simply takes a line resorts it and then brings you to the line that was entered.
The problem is I have a command button that adds lines based on an action, so it calls the worksheet update but the code that takes me to the line should not be run if a commandbutton is used just the code that resorts.
So I was wondering if there was a way to identify that the code was activated from a commandbutton, tried a variable but it gets deinitialised when leaving the commandbutton.
Not sure if this is clear
Thanks
The problem is I have a command button that adds lines based on an action, so it calls the worksheet update but the code that takes me to the line should not be run if a commandbutton is used just the code that resorts.
So I was wondering if there was a way to identify that the code was activated from a commandbutton, tried a variable but it gets deinitialised when leaving the commandbutton.
Not sure if this is clear
Thanks