macros
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 Training and help » Macros

Macros

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

resolvedResolved · Low Priority · Version 2003

Macros

Eliska has attended:
Excel Intermediate course
Excel Advanced course

by - delegate Eliska [2 posts] (2008 Jun 30 Mon, 16:40) replyReply

how do you work with visual basic editor?

Excel Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2008 Nov 27 Thu Bloomsbury 3 book now £240 £245
2003 2008 Nov 28 Fri Southwark 1 book now £235 £240
2003 2008 Dec 3 Wed Bloomsbury 0 FULL    
2003 2008 Dec 5 Fri Bayswater 5 book now £195 £205
2002/XP 2008 Dec 10 Wed Tooting 0 FULL    
2003 2008 Dec 10 Wed Bloomsbury 0 FULL    
Full Schedule: See all 98 Excel Advanced course dates.
Bookings currently available until 24th November 2009.

RE: macros

by - trainer Pete platinum contributer[799 posts] (2008 Jul 21 Mon, 11:25) replyReply

Hi Eliska,

Thank you for your post, in answer to your question, if you wish to edit a macro which has previously been recorded, follow these steps:

Note: Before undertaking any editing on essential objects you should ensure you are working on a copy of the original, this way should unforeseen errors occur you will not have corrupted your database.

1. Go to Start>Programs>Microsoft Excel to open the application. Go to File>New and open a new spreadsheet. Then go to Window>Unhide to bring the personal macro workbook forward – while you work with Excel this macro workbook remains hidden but when you need to edit a macro that is available to all Excel Workbooks you need to unhide it to be able to work with it.
2. Select “PERSONAL.XLS” and click OK to open the personal macro workbook.
3. Now, you can access the macros already created. Go to Tools>Macros and select Macros.
4. Now you can see all the macros already created and stored in the personal macro workbook. Select “your_macro_name” and click Edit to edit the macro.
5. You will now be viewing the VBA code. You will notice three distinctive windows:
1. The Project Window located to the upper left hand side, which shows you the files currently open.
2. The Properties Window located right below the Project window to the lower left hand corner, which lists the properties of the macros.
3. The Code window, located to the right hand side of the screen. The code window is where you edit the actual code of the macros and the one that you should concentrate on.
You will notice that the code for macro “your_macro_name” begins with “Sub your_macro_name ()” then you have the description of the macro right below it, (you type the description when recording the macro for the first time), then you see in the next line, the keyboard shortcut (if you have set one) – so in essence, the first couple of lines of code give you a quick summary of the macro.
6. If you wish you can now make changes to the text of your macro, remember do not change any of the code which is present, unless you are absolutely sure that your changes will not affect the running of the macro. Keep everything within the Sub xxx() and End Sub indicators.
7. Now go to File>Save PERSONAL.XLS and save the macro changes within the personal macro workbook. Then go to File>Close and Return to Microsoft Excel to close the macro within Visual Basic.

I hope that has helped a bit, Visual Basic in much more depth is covered in our VBA courses, regards Pete.


Related articles

· Microsoft Excel Training - Numerical excellence for all
· Creating Smarter, Customized Invoices for your Small Business with Microsoft Excel
· How to Create Better Excel Spreadsheets: Part Two
· Microsoft Excel Training Course
· Why Should I Learn Visual Basic in Excel?

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

Excel tip:

Find cells that match a format

In Excel you may wish to find cells that contain a specific formatting such s colour.

Select Edit > Find, click on Options and then Format...choose the formatting that you want found and click on OK

Choose one of the Find buttons to find.

View all Excel hints and tips

Rate this page:
3.5/5 (2 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