Welcome message

Akashwani

Well-known Member
Joined
Mar 14, 2009
Messages
2,911
Good day,

When a workbook is opened, is it possible to have a "welcome" message appear before the worksheets can be accessed?

I would like to create a "message" and two boxes that say "enter your name" and "enter your password".
These will be dummy boxes, but the user wont know that :LOL:

Ak
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try this: right click the Excel logo just to the left of File on the menu bar, select View Code and paste in

Code:
Private Sub Workbook_Open()
Dim s As String
s = InputBox("Enter name")
s = InputBox("Enter password")
End Sub
 
Upvote 0
Press ALT + F11 to open the Visual Basic Editor, in the left hand pane double click ThisWorkbook then paste in the code.
 
Upvote 0
I'm sorry VoG if I appear to be dumb,

I have done alt-F11 and I do not see a left hand pane or "thisworkbook"

am I missing something here?

Ak
 
Upvote 0
After pressing ALT + F11 you should see something like this:


vbe.jpg
 
Upvote 0
As VoG states, Press ALT + F11 to open the Visual Basic Editor, once you are in there on the left hand side of the screen you should see something that says, VBAProject and then in () the name of the Excel workbook you are using. If the + is not expanded then expand it and then you will see ThisWorkbook.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,739
Members
448,989
Latest member
mariah3

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