Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default 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
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
When was file last opened? Frankie Excel Worksheet Functions 5 May 19th 07 08:28 PM
How to delete the "Insert Function Dialog Box" (dialog box only)? TBI''d biker Excel Worksheet Functions 2 April 7th 07 09:18 PM
how to log all files opened on my pc? [email protected] Excel Discussion (Misc queries) 5 June 11th 06 11:09 PM
Incrementing by 1 when doc is opened Jenner Excel Worksheet Functions 3 February 16th 06 01:58 AM
To fix a sheet in MS Office to be opened first always Shariq Excel Worksheet Functions 3 January 17th 06 11:59 AM


All times are GMT +1. The time now is 12:40 PM.

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"