vba
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd 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 VBA Training and Help » VBA

VBA

The UK's most regular instructor-led training courses.
Training information: excel+training+best · Excel course london · VBA courses London

resolvedResolved · Low Priority · Version 2003

VBA

Elaine has attended:
Excel VBA course

by - delegate Elaine [1 post] (2008 Jul 30 Wed, 16:26) replyReply

When creating code in one workbook how do you make it available to other workbooks?

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2008 Dec 8 Mon Bayswater 2 book now £224 £224
2007 2008 Dec 9 Tue Bloomsbury 0 FULL    
2002/XP 2008 Dec 9 Tue Tooting 0 FULL    
2003 2008 Dec 11 Thu Southwark 7 book now £188 £215
2007 2008 Dec 16 Tue Bayswater 6 book now £207 £215
2002/XP 2008 Dec 16 Tue Tooting 0 FULL    
Full Schedule: See all 108 Excel Intermediate course dates.
Bookings currently available until 25th November 2009.

Make Code Available

by - trainer Carlos gold contributer[479 posts] (2008 Aug 1 Fri, 11:34) replyReply

Hi Elaine

If code is written in the Personal Macro Workbook it can be used by all workbooks that are opened on your computer.

Also, if Procedures(Macros) created in any workbook are preceded by the word Public (eg Public Sub MyMacro() ) then they will be visible by all open workbooks.

The danger of writing code in one workbook (Book A) to be used in another workbook (Book B), is that Book A has to be open on the computer for Book B to be able to use the code.

This means that if Book B is sent to someone else they can't run any of the code.

As a good practice I always advise people to copy the code into all the workbooks that will be using it.

It may be duplication of code but will save hours of frustration in the long term.

Regards

Carlos


Related articles

· Microsoft Excel Training Courses or Consultants: Which Is Better For Your Company?
· Prepare for your MOS Certification with MS Excel Courses
· Reasons Why VBA for Excel Training Fails
· Advanced level training: Microsoft Excel and the Web
· An Introduction to Microsoft Excel: Top Features for the Excel Novice

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

Excel tip:

Entering text in Multiple Worksheets

If you have a number of worksheets in a workbook that require the same information (data or tables) on each worksheet, this can be done as follows:

Hold down the Ctrl key and click one or more of the additional worksheet tabs (i.e. Sheet2, Sheet3, etc).

In your mainsheet (Sheet1) enter the required data or design a table.

When done 'Click' on the other sheet tabs and you will see that the information entered in Sheet1 is on all the other selected worksheets.

NB Do not forget to deselect the worksheets - otherwise you may add data to the main worksheet and all the selected worksheets will also have that data!

View all Excel hints and tips

Rate this page:
4.0/5 (3 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

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

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 Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz