![]() |
Workbook_Open macro question
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! |
Workbook_Open macro question
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! |
Workbook_Open macro question
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! |
All times are GMT +1. The time now is 02:40 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com