Pop-up message on startup

brandonh

New Member
Joined
Nov 2, 2009
Messages
2
I'd like to display a pop-up message on startup for an Excel file. The message would simply give a brief 3-step on how to use the file (calculations, etc.)

I've created pop-ups to validate cells before, but not this. Anyone have a way for me to do this?

Thanks.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hello and welcome to MrExcel.

right click the Excel logo just to the left of File on the menu bar and paste in

[/code]
Private Sub Workbook_Open()
MsgBox "Your message goes here"
End Sub
[/code]]
 
Upvote 0
You can create a MsgBox that is displayed when the Excel file is loaded.

In the VB editor select ThisWorkbook.
Write a procedure including the following code:


Private Sub Workbook_Open()

MsgBox("YourInformationHere")

End Sub



This will display a MsgBox when you open the spreadsheet that will have the information you want to have displayed and allow the user to click OK when done reading it.

If you need any more help with this let me know
 
Upvote 0
Thanks guys. Is there a way to then invoke the message box by clicking on a button that I put on the page...through either of these two options.

Thanks!
 
Upvote 0
Press ALT + F11 to open the Visual Basic Editor, select Module from the Insert menu and paste into the white space on the right

Code:
Sub MyMsg()
MsgBox "Step 1: do this" & vbCrLf & "Step 2: do that" & vbCrLf & "Step 3: do the other", vbInformation, "Instructions for Use"
End Sub

Press ALT + Q to return to your sheet. View > Toolbars > Forms, click on the button tool and draw out a button on the sheet. When prompted to assign a macro select MyMsg.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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