ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   message/dialog box auto open when excel file is activated (https://www.excelbanter.com/excel-discussion-misc-queries/4047-message-dialog-box-auto-open-when-excel-file-activated.html)

welshwizzard

message/dialog box auto open when excel file is activated
 
Please can anyone tell me the procedure how I can get a dialog/message box
to appear after I activate an excel file? Just like a splash screen in a
stand alone program.
Many thanks



Nick Hodge

You can either use an Auto_Open() macro in a standard module or (preferred)
a workbook_open() event like so

Private Sub Workbook_Open()
MsgBox "My Program"
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"welshwizzard" wrote in message
...
Please can anyone tell me the procedure how I can get a dialog/message
box
to appear after I activate an excel file? Just like a splash screen in a
stand alone program.
Many thanks





welshwizzard

many thanks.
Welshwizzard




..
"Nick Hodge" wrote:

You can either use an Auto_Open() macro in a standard module or (preferred)
a workbook_open() event like so

Private Sub Workbook_Open()
MsgBox "My Program"
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"welshwizzard" wrote in message
...
Please can anyone tell me the procedure how I can get a dialog/message
box
to appear after I activate an excel file? Just like a splash screen in a
stand alone program.
Many thanks







All times are GMT +1. The time now is 01:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com