Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Fionajpower
 
Posts: n/a
Default want to create a message box to appear on open

I want to be able to have a Message appearing the first time o open a
worksheet in an excel document or even have appear when the document
opensinitially.
can this be done easily and removed easily?
  #2   Report Post  
David Hepner
 
Posts: n/a
Default

Private Sub Workbook_Open()
'Place this code in the ThisWorkbook object
MsgBox "Insert your message here", vbInformation, "Insert your message box
title here"

End Sub


"Fionajpower" wrote:

I want to be able to have a Message appearing the first time o open a
worksheet in an excel document or even have appear when the document
opensinitially.
can this be done easily and removed easily?

  #3   Report Post  
Norman Jones
 
Posts: n/a
Default

Hi Fiona,

Paste the following code into a standard module in the workbook:

Sub Auto_Open
Msgbox "Hi from Fiona!"
End sub

If you are new to macros, you may wish to visit David McRitchie's 'Getting
Started With Macros And User Defined Functions' at:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

For your immediate purposes, however:

Alt-F11 (to open the Visula Basic Editor)
Alt IM (to insert a new module)
Paste the code at the cursor point
Alt-F11 (to return to Excel)
Now, whenever the workbook is opened, the greeting will appear.

To delete the macro, in Excel:

Alt-F8 (opens the Macro dialog box)
Select 'Auto_Open) in the dropdown list
Hit the dialog's Delete button

---
Regards,
Norman



"Fionajpower" wrote in message
...
I want to be able to have a Message appearing the first time o open a
worksheet in an excel document or even have appear when the document
opensinitially.
can this be done easily and removed easily?



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
can i create a shortcut to open a spreadsheet read only? Mark Excel Discussion (Misc queries) 1 September 21st 05 01:13 PM
Check box and and formula Russell-stanely Excel Discussion (Misc queries) 7 July 7th 05 09:06 PM
Can't open any files due to my non-existant virus scanner Jay Excel Discussion (Misc queries) 1 July 3rd 05 07:54 PM
Trying to open Excel/Word files error message "Unable to read file RobM Excel Discussion (Misc queries) 1 February 7th 05 08:11 PM
Cannot open a file that Excel says is open Plodhia Excel Discussion (Misc queries) 2 December 7th 04 01:43 AM


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

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"