-
Notifications
You must be signed in to change notification settings - Fork 0
ExecuteMacro.cs
Avrigeanu Laurian edited this page Apr 12, 2023
·
1 revision
-
macroName
: The name of the macro to execute.
This method does not return anything.
This method is used to execute a macro in the current workbook. The macroName
parameter specifies the name of the macro to execute. The method uses reflection to invoke the Run
method of the workbook object, passing in the macroName
parameter as an argument.
It is important to note that the macroName
parameter must match the name of a valid macro in the workbook, or else an exception will be thrown. Additionally, this method assumes that the workbook object has already been instantiated and set to the workbook
variable.