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:

Class VBATool


Last Updated: 04/27/05