Private Sub Worksheet_Activate()
Range("a1").Value = "Hi" 'or whatever you want
End Sub
this code goes against the sheet module of the specific worksheet that you
want to use to execute the code rather than in a "module", ie if the sheet
was called Sheet2, then in the VBE window, you would double click on Sheet2
in the project explorer and put your code there.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.