Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
PeterM
 
Posts: n/a
Default 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   Report Post  
Bob Phillips
 
Posts: n/a
Default 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   Report Post  
Paul B
 
Posts: n/a
Default 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   Report Post  
PeterM
 
Posts: n/a
Default 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   Report Post  
PeterM
 
Posts: n/a
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Opening Excel File Mohd Anis Excel Discussion (Misc queries) 3 September 26th 05 08:10 AM
Error message opening Excel Ed Excel Discussion (Misc queries) 1 March 18th 05 04:04 AM
Opening an Excel file Sheldon Zaklow Excel Discussion (Misc queries) 0 March 3rd 05 10:29 PM
excel opening file error Firemedic395 Excel Discussion (Misc queries) 2 December 8th 04 05:50 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"