Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Runs a macro.
Syntax
expression. Macro( _Name_ )
expression A variable that represents an Application object.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| Name | Optional | String | The name of the macro to run. If Name is omitted, the Macros dialog box appears. |
Return value
Boolean
Example
The following example runs a macro named "CheckShifts".
Sub RunMacro()
Macro "CheckShifts"
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.