Use the OnActivate event for the worksheet. To do this, open the VBA Editor. Select the worksheet in the Project window then click the view code button. Select Worksheet from the left dropdown then Activate from the right. The editor will write the event procedure shell. Just add your VBA code here. It will run each time the specified worksheet is activated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.