Pop up message box when first opening spreadsheet?

dlowery06

Board Regular
Joined
Feb 14, 2003
Messages
65
Can I create a message box that displays a message when the spreadsheet is first opened?

If so, where do I put it?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
You will need to put the following in the ThisWorkbook module:

Private Sub Workbook_Open()
MsgBox "Hello",vbOkOnly+vbExclamation,"Title for HELLO"
End Sub
 
Upvote 0
Works great!

Worked like a charm! Thanks for the information from both of you.

BTW, like Kevin.Philips said, it doesn't have to go in the Thisworkbook module, I put it in an empty module that I had open and it worked great!
 
Upvote 0
This is true, it will work, but the Auto_Open procedure is the older way of doing what you want. The Worksheet_Open event is the "cleaner" way to do this.
 
Upvote 0
Glad I saw this thread. I have a spreadsheet that I have a pop up window with a message which works almost fine.....the message appears, but it stays minimised with the sheet on the taskbar, which isn't always obvious to users, have I created my message incorrectly?

Any thoughts greatly appreciated!
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,174
Members
448,870
Latest member
max_pedreira

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top