msgbox function

  • Thread starter Thread starter cliodne
  • Start date Start date
C

cliodne

I'm not sure if what I'm trying to do is possible, but I have a workbook
where if a sheet is selected, I need a msgbox to pop up under certain
circumstances. I'm not having a problem with the circumstance part,
but with the msgbox popping up. I thought that if I put the following
code in "thisworksheet" or in the sheet under the excel objects, then
it would work automatically (much like when a user form appears when a
workbook is opened), but no such luck.

If Sheets("Summary").Select Then
MsgBox ("Please make sure that the currency choice and percentage
of attendance are uniform for all sheets before viewing this page.
Thank you.")
End if

Any help is greatly apprciated. Thanks,
Cami
 

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

Back
Top