Name

Application.Run([Macro], [Args])

Synopsis

Runs a macro.

Argument

Setting

Macro

The name of the macro to run

Args

Arguments for the macro

This method is mainly used by Excel itself when recording user actions that run macros. However, you can also use it to run automated tests during development.

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.