SaveRecording
Purpose:
Saves the recorded macro to a file with an
extension .wksp.
Declarations:
VC++
long SaveRecording
(_bstr_t pFileName, _bstr_t pPassword, long OverWrite, long pCreateFolder );
VISUAL
BASIC:
SaveRecording (ByVal pFileName As String, Optional ByVal pPassword As String,
Optional ByVal pOverWrite As Long, Optional pCreateFolder As Long) As Long
Parameters:
- pFileName:
The filename along with path, where
the recorded macro has to be saved.
- pPassword: Specify the password if you
want to password protect the macro.
- pOverWrite
- 1 : Pass 1
if a file already exist with the
same name as specified in the pFileName parameter and you want to overwrite it
or if the filename with pFileName does not exist then it will create a new
file.
- 0: If you pass 0 and If a file
already exist with the same name as specified in the pFileName parameter then
it will return an Error otherwise it will create the file.
- pCreateFolder
- 1 :
If the path specified in the
pFileName parameter does not exist then it will create all the folders in the
specified path else it will create the file in the specified path.
- 0 :
If the path specified in the
pFileName parameter does not exist then it will return an error else it will
create the file in the specified path.
Return Value:
Returns 1 if there is any kind of failure, or 0 if successful.