Removes a file with user macros from the VBA environment.

Syntax:

RemoveUserMacros( FileName As String ) As Boolean
Return: Boolean
Parameters: FileName File name of the user macros file to be removed.

Example:
Dim Tool As VBATool
Dim Filename As String

Set Tool = Application.Tools.VBATool
Filename = Application.Tools.DirectoryTool.GetDefaultMacroPath & "NewMacros.macro"
Call Tool.RemoveUserMacros(Filename)

See also:

Class VBATool


Last Updated: 04/27/05