Share

To Run a VBA Macro

Product Documentation
Intermediate

To Run a VBA Macro

  1. At the Command prompt, enter vbaman and press Enter.
  2. In the VBA Manager dialog box, click Macros.
  3. In the Macros dialog box, select the macro you want to run. Click Run.

    Procedures listed in the Macro Name box use the following syntax:

    project!module.macro

  4. Respond to the dialog box or any prompts that are displayed by the macro.

To Run a VBA Macro from the Command Prompt

  1. At the Command prompt, enter -vbarun and press Enter.
  2. Enter the name of the macro to run and press Enter.

    The macro name needs to be provided in the syntax <project!module.macro>.

  3. Respond to the dialog box or any prompts that are displayed by the macro.

To Run a VBA Macro with AutoLISP

Use one of the following:

  • -VBARUN command - Specify the macro to run using the syntax <project!module.macro>.

    For example, (command "_-vbarun" "mytools.dvb!utilities.selectcircles")

  • vl-vbarun function - Run the provided macro in the specified project.

    For example, (vl-vbarun "mytools.dvb!utilities.selectcircles")


Was this information helpful?