Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How can I display a message when opening an Excel File?
I would like to have a disclaimer message pop up when someone opens one of my
spreadsheets. Is that possible? If so, how? |
#2
|
|||
|
|||
How can I display a message when opening an Excel File?
Private Sub Workbook_Open()
'your code here End Sub 'This is workbook event code. 'To input this code, right click on the Excel icon on the worksheet '(or next to the File menu if you maximise your workbooks), 'select View Code from the menu, and paste the code -- HTH RP (remove nothere from the email address if mailing direct) "PeterM" wrote in message ... I would like to have a disclaimer message pop up when someone opens one of my spreadsheets. Is that possible? If so, how? |
#3
|
|||
|
|||
How can I display a message when opening an Excel File?
Peter, here is one way, if they enable macros
Private Sub Workbook_Open() MsgBox "Put you message here", , "Put a title here" End Sub To put in this macro, from your workbook right-click the workbook's icon and pick View Code. This icon is to the left of the "File" menu this will open the VBA editor, in Project Explorer double click on thisworkbook, under your workbook name, if you don't see it press CTRL + r to open the Project Explorer, then, then paste the code in the window that opens on the right hand side, press Alt and Q to close this window and go back to your workbook, now this will run every time you open the workbook. If you are using excel 2000 or newer you may have to change the macro security settings to get the macro to run. To change the security settings go to tools, macro, security, security level and set it to medium -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "PeterM" wrote in message ... I would like to have a disclaimer message pop up when someone opens one of my spreadsheets. Is that possible? If so, how? |
#4
|
|||
|
|||
How can I display a message when opening an Excel File?
Thanks Bob, that did it!
"Bob Phillips" wrote: Private Sub Workbook_Open() 'your code here End Sub 'This is workbook event code. 'To input this code, right click on the Excel icon on the worksheet '(or next to the File menu if you maximise your workbooks), 'select View Code from the menu, and paste the code -- HTH RP (remove nothere from the email address if mailing direct) "PeterM" wrote in message ... I would like to have a disclaimer message pop up when someone opens one of my spreadsheets. Is that possible? If so, how? |
#5
|
|||
|
|||
How can I display a message when opening an Excel File?
Thanks Paul! That is exactly what I needed.
"Paul B" wrote: Peter, here is one way, if they enable macros Private Sub Workbook_Open() MsgBox "Put you message here", , "Put a title here" End Sub To put in this macro, from your workbook right-click the workbook's icon and pick View Code. This icon is to the left of the "File" menu this will open the VBA editor, in Project Explorer double click on thisworkbook, under your workbook name, if you don't see it press CTRL + r to open the Project Explorer, then, then paste the code in the window that opens on the right hand side, press Alt and Q to close this window and go back to your workbook, now this will run every time you open the workbook. If you are using excel 2000 or newer you may have to change the macro security settings to get the macro to run. To change the security settings go to tools, macro, security, security level and set it to medium -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "PeterM" wrote in message ... I would like to have a disclaimer message pop up when someone opens one of my spreadsheets. Is that possible? If so, how? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
Opening Excel File | Excel Discussion (Misc queries) | |||
Error message opening Excel | Excel Discussion (Misc queries) | |||
Opening an Excel file | Excel Discussion (Misc queries) | |||
excel opening file error | Excel Discussion (Misc queries) |