Pop-up Message for each worksheet in a workbook

P

patsy

I have a workbook with 3 worksheets in it. The worksheets are named -
Meat-Page 1, Meat-Page 2, Cheese. When the workbook is opened an automatic
pop-up message box appears. The workbook is always opened to the first tab
(Meat-Page 1). Is there a way that if the user changes to Tab 2 (Meat-Page
2) the pop-up message appears again by just switching tabs? I want to make
this workbook idiot proof which I am finding out is not easy. Thanks for the
help.
 
G

Gary''s Student

In the worksheet code area of each sheet, include the following event macro:

Private Sub Worksheet_Activate()
MsgBox ("This is your complementary message:" & Chr(10) & "You look great
today!")
End Sub
 

Ask a Question

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.

Ask a Question

Top