#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default message box

I want a message to display on a worksheet when a file is open. The message
must contain an OK button that must be pressed by the user. On clicking the
OK button the message box must dissappear.

Can somebody please assist.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default message box

Open Workbook
Press Alt-F11 to open VBE editor
Click on This workbook under your workbook
Paste the following
'----------------------
Private Sub Workbook_Open()
MsgBox "Press Ok to continue", vbOK
End Sub
'-----------------------
Close VBE
Close your workbook

Open again to test...
--
Always provide your feedback so that others know whether the solution worked
or problem still persists ...


"Hein" wrote:

I want a message to display on a worksheet when a file is open. The message
must contain an OK button that must be pressed by the user. On clicking the
OK button the message box must dissappear.

Can somebody please assist.
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default message box

If you do not want the cancel button then simple paste
Private Sub Workbook_Open()
MsgBox "Press Ok to continue"
End Sub
--
Always provide your feedback so that others know whether the solution worked
or problem still persists ...


"Hein" wrote:

I want a message to display on a worksheet when a file is open. The message
must contain an OK button that must be pressed by the user. On clicking the
OK button the message box must dissappear.

Can somebody please assist.
Thanks

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
Message Box John Moore Excel Discussion (Misc queries) 3 September 26th 08 02:55 PM
Message Box Ron (Bismark) Excel Discussion (Misc queries) 11 September 4th 07 04:06 AM
Message JG Excel Worksheet Functions 3 December 28th 06 02:51 PM
Add a Message Box Anthony Excel Worksheet Functions 2 February 25th 05 03:29 AM
changing the message in an error message The Villages DA Excel Worksheet Functions 2 February 18th 05 05:30 PM


All times are GMT +1. The time now is 10:43 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"