Message on opening of worksheet

G

Guest

I would like to have a message pop up when a particular worksheet opens
warning users that "All worksheets are linked to Master Price List worksheet.
Please edit only Master Price List."

Is there a way to do this with a macro? Thank you.
 
G

Guest

This code would go into the workbook's event code segment. To get it there,
right-click on the Excel icon to the left of the word "File" in the menu bar
and choose [View Code] from the list, copy the code, paste it in and modify
as needed.

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
'change name as required
If Sh.Name <> "Master Price List Sheet Name" Then
MsgBox "your message here"
End If
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