ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   I want a dialog box when opened (https://www.excelbanter.com/excel-discussion-misc-queries/195558-i-want-dialog-box-when-opened.html)

SFC Traver

I want a dialog box when opened
 
I want a dialog box to appear when the excel file is opened. It would contain
a warning of "protected" information and all the user would have to do is
click "OK' and then the spreadsheet would open. How do I do this?

Jarek Kujawa[_2_]

I want a dialog box when opened
 
press Alt+F11
in ThisWorkbook module insert the following

Private Sub Workbook_Open()
MsgBox "Protected information." & vbcrlf & vbcrlf & "Click OK to
continue"
End Sub


All times are GMT +1. The time now is 02:53 AM.

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