Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you want to display the message when a sheet is activated, put your
code in the Sheet Object Activate sub. i.e. Private Sub Worksheet_Activate() ' Built in subroutine MsgBox "hello" End Sub SteveM Jurrasicway wrote: Hi, I wish to display a message box when a user opens the spreadsheet. How do I make my message box code run? I have tried the following but it does not seem to work: Sub DisplayMessageBox() If Sheet("Price Change Request").active = True Then MsgBox "hello" End if End Sub How do I trigger this sub routine or is there an "OnOpen" event that I can attach my code to? Graeme. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Equivalent of Access "Load" Event? | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
How so I make a "Worksheet_Change Event" to show cell changes in Excel? | Excel Programming | |||
OnOpen event | Excel Programming |