excel vba

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

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

Excel VBA

resolvedResolved · Low Priority · Version 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:

Use shortcut keys to select rows or columns

Most users use the mouse to select rows or columns. It may be more convenient to use keyboard shortcuts to do that.

The shortcut key combination to select an entire row is Shift+Spacebar.

The shortcut key combination to select an entire column is Ctrl+Spacebar.

These are pretty easy to remember as the spacebar looks like a long row (or column if you're looking at it sideways). Remember that Ctrl, beginning with C, selects columns and Shift, by a process of elimination, the rows.

View all Excel hints and tips


Server loaded in 0.08 secs.