Recording, Editing, and Running VSTA Macros¶
Use the VSTA command to record, edit, and run Microsoft® Visual Studio Tools for Applications (VSTA) macros. It is the command window variant of the VSTAManager command.
You can use the VSTA command to add the options for macro recording as well as macro calls to menus and toolbars.
To record macros:
Type VSTA at the command prompt.
Specify the Record macro option.
Run the commands to record.
Type VSTA again at the command prompt.
Specify the Stop recording macro option.
Macro recording ends.
To run macros:
Type VSTA.
Specify the Run macro option.
Type the name of the macro to run.
The macro runs.
To edit macros:
Type VSTA.
Specify the Launch editor option.
Microsoft Visual Studio Tools for Applications 2.0 opens and displays the recorded macro code.
Edit the macro code.
To delete macros:
Type VSTA.
Specify the Delete macro option.
Type the name of the macro to delete.
Click Yes to confirm the deletion.
Access
Command: VSTA
Related Topics