Hello Profklein
If I'm reading your question correctly, you want a macro that will automatically run the moment you click on the tab for Sheet2. That is quite easy to accomplish. I'm not sure what you mean when you said you put your code in '(the macro area)' and this could be your problem. To make a macro run automatically follow these steps:
1 ) Click on the sheet tab with the RIGHT mouse button. (you MUST use the RIGHT mouse button)
2 ) Select VIEW CODE from the menu that pops up with the LEFT mouse button.
3 ) In the blank Visual Basic editor window, paste this code.
Code:
Private Sub Worksheet_Activate()
MsgBox "Welcome"
End Sub
4 ) Save and close this code window.
5 ) To test this, click on another sheet tab, then click on the Sheet2 tab as you normally would.
6 ) You should see the message of "Welcome" appear.
I hope this is what you are looking for.
TotallyConfused