ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   in Excel, how do I set up an alert popup when the file is opened? (https://www.excelbanter.com/excel-programming/336458-excel-how-do-i-set-up-alert-popup-when-file-opened.html)

scgaca

in Excel, how do I set up an alert popup when the file is opened?
 
in Excel, how do I set up an alert popup when the file is opened?

Norman Jones

in Excel, how do I set up an alert popup when the file is opened?
 
Hi Scgaca,

Try something like:

Sub Workbook_Open()

MsgBox Me.FullName & " now open!"

End Sub

This is workbook event code and should be pasted into the workbook's
ThisWorkbook module:

Right click the Excel icon on the worksheet
(or the icon to the left of the File menu if you your workbook is
maximised)

View Code from the menu, and paste the code.

Alt-F11 to return to Excel.


---
Regards,
Norman



"scgaca" wrote in message
...
in Excel, how do I set up an alert popup when the file is opened?




scgaca

in Excel, how do I set up an alert popup when the file is open
 
Perfect! That's exactly what we were looking for..Many thanks.

"Norman Jones" wrote:

Hi Scgaca,

Try something like:

Sub Workbook_Open()

MsgBox Me.FullName & " now open!"

End Sub

This is workbook event code and should be pasted into the workbook's
ThisWorkbook module:

Right click the Excel icon on the worksheet
(or the icon to the left of the File menu if you your workbook is
maximised)

View Code from the menu, and paste the code.

Alt-F11 to return to Excel.


---
Regards,
Norman



"scgaca" wrote in message
...
in Excel, how do I set up an alert popup when the file is opened?






All times are GMT +1. The time now is 11:47 AM.

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