RunMacro
Purpose:
Runs a recorded macro.
Declarations:
VC++
long RunMacro (_bstr_t pFileName, _bstr_t pPassword, long
pStopOnEsc, _bstr_t
pLogErrorFileName );
VISUAL
BASIC:
RunMacro (ByVal pFileName
As String, Optional ByVal pPassword As String, Optional ByVal pStopOnEsc As
Long, Optional ByVal pLogErrorFileName As String) As Long
Parameters:
- pFileName:
The filename along with the
complete path that you want to run.
- pPassword: If the macro was saved
using a password then you have to pass the password using this parameter.
- pStopOnEsc
- 1 :
It will stop the running the macro,
if Esc key is pressed during the run.
- 0: (Default). It will not stop
running the macro, if Esc key is pressed during the run.
-
pLogErrorFileName: Specify
the path along with the file name where the errors should be logged.
Return Value:
Returns 1 if there is any kind of failure, or 0 if successful.