excel vba
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 » Excel VBA

Excel VBA

resolvedResolved · Low Priority · Version 2003

replyReply Tue 18 Nov 2008, 16:31Delegate Marta said...

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

Excel VBA

How do you change the name of an existing macro?

For upcoming training course dates see: Pricing & availability

replyReply Mon 2 Feb 2009, 15:43Trainer Carlos said...

RE: Excel VBA

Hi Marta

When a macro is created the code appears in a Module in the VB Editor. To change the name:

1. Open the VBE and double click the relevant Module

2. Highlight the macro's name in the Sun line eg:

Sub MacroName()

3. Write the new name as

Sub MyNewName()

The macro will now only run if the new name is called

Hope this helps

Carlos

Mon 9 Feb 2009: Automatically marked as resolved.

 

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

Excel tip:

Calculate age or service

The DATEDIF() function in Excel calculates the number of days, months, or years between two dates. So, this function makes it easy to calculate a person's age. To try this tip:

In a blank worksheet, type the birth date in cell A1, using slashes to separate day, month, and year.
In cell A2, type =DATEDIF(A1,TODAY(),"y") and press ENTER.

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