An Introductory MessageBox on loading of Excel

segran

Active Member
Joined
Aug 20, 2004
Messages
335
Dear All

I have an elementary question for you.

When I first open excel, I want like a messagebox to appear with some information(example " Hello").

Kindly inform me, how I can do this.

Thank you
 

Some videos you may like

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Hi

You can do this by placing the following code within your Personal Macro Workbook in the ThisWorkbook module:

Code:
Private Sub Workbook_Open()
MsgBox "Hello"
End Sub

This works because the Personal.xls is normally located within the XLSTART folder and the contents of this folder are automatically opened when Excel is started up.

Best regards

Richard
 

Watch MrExcel Video

Forum statistics

Threads
1,109,161
Messages
5,527,156
Members
409,750
Latest member
BorisYeltsin

This Week's Hot Topics

Top