vba
Microsoft Office Training McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams add this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

VBA

The UK's most regular instructor-led training courses.
Training information: excel+training · Excel training courses · Microsoft Excel Training
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version Standard

VBA

Edward has attended:
Excel VBA course

by - delegate Edward [4 posts] (2008 Feb 7 Thu, 16:37) replyReply

How do you get a macro to function automatically on opening of a workbook?

Excel Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2009 Jan 9 Fri Bloomsbury 1 book now £240 £245
2007 2009 Jan 14 Wed Bloomsbury 5 book now £235 £245
2002/XP 2009 Jan 14 Wed Tooting 0 FULL    
2003 2009 Jan 16 Fri Southwark 0 FULL    
2007 2009 Jan 21 Wed Bloomsbury 3 book now £240 £245
2003 2009 Jan 21 Wed Southwark 2 book now £235 £240
Full Schedule: See all 114 Excel Advanced course dates.
Bookings currently available until 31st March 2010.

RE: VBA

by - trainer Carlos gold contributer[494 posts] (2008 Feb 19 Tue, 16:22) replyReply

Hi Edward

To run a macro when the workbook opens you need to do the following:

1. In the VB Editor double click "This Workbook" in the project window

2. The code window for "This Workbook" appears

3. In the drop down area at the top select Workbook. The Open Event Procedure appears.

4. Call the macro as shown below:

Private Sub Workbook_Open()

Call MyMacro

End Sub


Hope this helps

Carlos


Related articles

· Tips to Facilitate Printing of Excel worksheets
· Microsoft Excel Training - Discover A Hidden Power At Your Fingertips
· Microsoft Excel Training Course
· Training Budgets In A Bad Economy
· 3 Ways that MS Excel Courses Can Drastically Improve Productivity for Teachers

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

Excel tip:

The dual nature of toolbar buttons

Many toolbar buttons are dual purpose, though the two purposes are often linked in some way. For example, Align Left aligns a cell's contents to the left of the cell. However, hold down Shift and press the Align Left button: Excel aligns the cell contents to the right.
You may respond: So what? Well, you can reduce the number of buttons on your toolbar to make your screen less cluttered and allow more room for, perhaps, some of your own commands. After all, what's the point of an Align Right button when Shift+Align Left does the same thing?

View all Excel hints and tips

Rate this page:
3.0/5 (5 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Training venues
Client list
FAQ
Pricing and availability
Course details / Syllabus

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London
Microsoft Office training

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
Microsoft access courses · Microsoft training access course
Microsoft+access+training · Access courses in london

Training Information
Training Articles

AddThis Social Bookmark Button What's this?
Add to: Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo