Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How can I program a message box to open when a user opens and exc.

How can I program a message box to open when a user opens and excell file.

Ie. When a user selects to open a file a command box opens with the messge
"Please note this file is good for ..." wtc. The user then clicks ok to
continue to the opened work book.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How can I program a message box to open when a user opens and exc.

Private Sub Workbook_Open()
msgbox "Please note this file is good for . . . "
End Sub

go into the VBE and go to the Thisworkbook entry in the Project explorer.
double click on this an you will get the code module for Workbook level
events. In the left dropdown as the top choose Workbook and from the right
choose Open. Add the line for the message box.

http://ww.cpearson.com/excel/events.htm Chip Pearson's page on events.

--
Regards,
Tom Ogilvy

"Marcus" wrote in message
...
How can I program a message box to open when a user opens and excell file.

Ie. When a user selects to open a file a command box opens with the messge
"Please note this file is good for ..." wtc. The user then clicks ok to
continue to the opened work book.



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
change program that hyperlink opens with Radleyboo847 Links and Linking in Excel 2 February 17th 10 12:17 AM
Excel saved files won't open, only the program opens DaynaDain Excel Discussion (Misc queries) 1 September 14th 09 06:58 PM
Why every excel shortcut opens a new copy of the program? ggpower Excel Discussion (Misc queries) 0 July 15th 07 03:22 PM
How do I insert a message when a user opens my Excel workbook? kp5689 Excel Discussion (Misc queries) 1 September 16th 05 03:54 PM
Hyperlink in Excel opens the right program, but can't read file. Katydid Excel Discussion (Misc queries) 0 May 6th 05 04:16 PM


All times are GMT +1. The time now is 04:43 AM.

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

About Us

"It's about Microsoft Excel"