Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel vba

ResolvedVersion 2003

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

Excel VBA

How do you change the name of an existing macro?

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.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Display Functions on Worksheets

Functions in Excel can be difficult to recall their format/syntax

For example, you want to use the =PMT function.

Enter =PMT, then select keystroke, CTRL+SHIFT+A.

This usful memory jog, will display the arguments of a function on a worksheet, allowing the user to proceed with the generation of the function



View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.