Pop up box

J

japc90

I want to create a pop up box that will appear when the spreadsheet is
opened. Is this possible? I do not want it to be dependent upon a
specific cell but instead to open every time the spreadsheet is opened.


Thank you.
 
P

Paul B

japc90, use the workbook open event,

Private Sub Workbook_Open()
MsgBox "your message here"
End Sub

To put in this macro, from your workbook right-click the workbook's icon and
pick View Code. This icon is at the top-left of the spreadsheet 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, 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
 
J

japc90

Thanks! It worked great but now a box pops up telling me that I need to
change my macro security level. I did this and it works but will it
work when I send this file to other people?
 
P

Paul B

japc90, that depends on what there security setting is set at

--
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

pop up box 1
pop up box reminder 2
Autostart Macro 5
Dialog Pop Up Box 1
custom pop up message 1
Turn off prompts 1
How do I insert a pop-up box to alert me when numbers are wrong? 4
MessageBox with tick box 3

Top