98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Message boxes
Message boxes
Resolved · 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 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
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Change the Value of a ConstantWhen using a named constant in a worksheet, you may wish to change the value of that constant. |