RC-WinTrans Object Model Help |
VBATool.SaveUserMacros |
Saves the user macros file with the given file name.
Syntax: |
SaveUserMacros( SourceFilename, TargetFilename ) As Boolean |
Return: | Boolean |
Parameters: |
SourceFilename File name of the user macros to be saved. TargetFilename New file name of the user macros.
|
Example: | Dim Tool As VBATool Dim SourceFilename As String Dim TargetFilename As String Set Tool = Application.Tools.VBATool SourceFilename = Application.Tools.DirectoryTool.GetDefaultMacroPath _ & "NewMacros.macro" TargetFilename = Application.Tools.DirectoryTool.GetDefaultMacroPath _ & "CopyOfNewMacros.macro" Call Tool.SaveUserMacros(SourceFilename, TargetFilename) |
See also: