Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Message on opening of worksheet

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Message on opening of worksheet

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


"Ruth" wrote:

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Message box upon opening file flipperdoodle Excel Discussion (Misc queries) 7 April 7th 07 11:44 PM
Error message when opening Excel Constance Excel Discussion (Misc queries) 2 January 31st 07 02:44 PM
Message Upon Opening File JaneC Excel Discussion (Misc queries) 1 April 14th 05 08:22 AM
Error message on opening?? JDT Excel Discussion (Misc queries) 1 March 4th 05 11:41 PM
error message in opening David Excel Discussion (Misc queries) 1 January 13th 05 09:14 PM


All times are GMT +1. The time now is 06:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"