Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

message boxes

ResolvedVersion 2003

Matthew has attended:
Excel VBA Intro Intermediate course

Message boxes

How do i get a message box to display immediately after opening a workbook? Thanks.

RE: message boxes

Hi Mathew

Thanks for your question. You need to write the code in the on open event of the workbook.

Open the VBE and look at the project explorer. Double click on the ThisWorkbook icon.

Now in the code window click on the object combo box. (At the top left of the code window; it will probably initially have the value "General")

Select Workbook. This will create an on open sub procedure for the workbook. You can then enter your code here.

Regards

Stephen

Wed 3 Dec 2008: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Apply Autosum with keyboard shortcut

If you press Alt and = at the same time, it applies autosum.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.