Skip to main content
OCLC Support

RunMacro

Find the syntax, use, parameters, return values, and an example for the RunMacro macro command in Connexion client.
Syntax BOOL = CS.RunMacro (sMacroName)
Use to Run a specified macro.
Parameters For sMacroName, enter the name of the macro, enclosed in quotation marks, in the following format (do not type the brackets): [macro book name]![macro name]
Return values TRUE if the action is successful, or FALSE if not.
Example Sub Main()

     Dim CS As Object
     Set CS = GetObject(,“Connex.Client”)

     CS.RunMacro “ClientMacros.mbk!Test”
End Sub

What this example does Runs a macro named Test in a macro book named ClientMacros (always has the file extension *.mbk).