macros
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

Macros

resolvedResolved · Low Priority · Version 2003

replyReply Fri 19 Jun 2009, 16:45Delegate Linda said...

Linda has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

Macros

how do i get a Macro to open automatically on opening of the worksheet?

For upcoming training course dates see: Pricing & availability

replyReply Mon 22 Jun 2009, 10:06Trainer Carlos said...

RE: Macros

Hi Linda

To get a macro to open automatically when the workbook opens you need to create an Event procedure. To do this:

1. In the Visual Basic Editor double click on "ThisWorkbook" in the Project section.

The "ThisWorkbook" code window appears

2. In the code window drop down the left combo box and select "Workbook". The computer automatically creates the following Event procedure:

Private Sub Workbook_Open()

End Sub

Write the code that you want to run when the Worbook opens inside the above event. The code will run every time the workbook opens.

Hope this helps

Carlos

Mon 29 Jun 2009: Automatically marked as resolved.

 

Please browse our web site to find out more about
excel+training and other Microsoft training courses.

Excel tip:

Moving between split pane sections in a spreadsheet

If you have used the split panes feature in your worksheet, use the following keyboard shortcut keys to move quickly and effortlessly between paned sections:

F6 - Move to the next pane
Shift + F6 - Move to the previous pane

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard