Hi I have a click vba button but is it possible for it to activate just when I click a specific sheet rather than needing click button itself .
Thanks in advance
Hi I have a click vba button but is it possible for it to activate just when I click a specific sheet rather than needing click button itself .
Thanks in advance
Put this in the code sheet of the worksheet you want (NOT in a regular module)
![]()
Please Login or Register to view this content.
Last edited by Raphaelp; 04-24-2017 at 05:14 PM.
Yes, with Worksheet_Activate event.
Place the code in the worksheet you want the code to run on when activated and change the title of the sub to
Private Sub Worksheet_Activate()
1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.
Tom
thank you both so much
You're welcome. Glad it worked for you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks