message boxes

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

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Message boxes

Message boxes

resolvedResolved · Low Priority · Version 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:

Change the Value of a Constant

When using a named constant in a worksheet, you may wish to change the value of that constant.

From the 'Insert' menu, select 'Name', then select 'Define'.

In the 'Define Name' dialog box, select the constant that you want to change.
Change the value in the 'Refers To' box.
Click OK.

Wherever that named constant has been used it will now use its new value.

View all Excel hints and tips


Server loaded in 0.08 secs.