Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to get a message box to pop up when my workbook is opened. I found
this macro structure in a previous post: Private Sub Workbook_Open() MsgBox (" text ") End Sub If I click the little "play" button in VB Editor it pops up the box, but if I close the workbook and re-open it, I don't get the message box. Am I missing something? Thanks much in advance! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi JaimeZX
You must copy this event in the Thisworkbook module and not in a normal module -- Regards Ron de Bruin http://www.rondebruin.nl "JaimeZX" wrote in message ... I'm trying to get a message box to pop up when my workbook is opened. I found this macro structure in a previous post: Private Sub Workbook_Open() MsgBox (" text ") End Sub If I click the little "play" button in VB Editor it pops up the box, but if I close the workbook and re-open it, I don't get the message box. Am I missing something? Thanks much in advance! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Aaah. Terrific! Now I've got it. Thanks, gentlemen!
Jim "Harald Staff" wrote: The code must be in the ThisWorkbook module, nowhere else. HTH. best wishes Harald "JaimeZX" skrev i melding ... I'm trying to get a message box to pop up when my workbook is opened. I found this macro structure in a previous post: Private Sub Workbook_Open() MsgBox (" text ") End Sub If I click the little "play" button in VB Editor it pops up the box, but if I close the workbook and re-open it, I don't get the message box. Am I missing something? Thanks much in advance! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Workbook_Open macro - what gives? | Excel Programming | |||
Workbook_Open question | Excel Programming | |||
Workbook_Open Question | Excel Programming | |||
Workbook_Open & Macro | Excel Programming | |||
Workbook_Open event and combobox state storage question | Excel Programming |