I need to remove 2 macros from a Word Doc before circulating it (size reasons as well as nosey/tampering users!) I don't want to remove the whole Module (easy?), because the macro to remove the macros is in it.
I have tried the following but it doesnt work. The path does but the "Name" won't pick up the macro names.
Where is the flaw, or is the code wrong anyway?
Sub DTidy()
Application.OrganizerDelete Source:=ActiveDocument.Path & "\" & ActiveDocument.Name, _
Name:="DFill", Object:=wdOrganizerObjectProjectItems
Application.OrganizerDelete Source:=ActiveDocument.Path & "\" & ActiveDocument.Name, _
Name:="DClean", Object:=wdOrganizerObjectProjectItems
End Sub
I have tried the following but it doesnt work. The path does but the "Name" won't pick up the macro names.
Where is the flaw, or is the code wrong anyway?
Sub DTidy()
Application.OrganizerDelete Source:=ActiveDocument.Path & "\" & ActiveDocument.Name, _
Name:="DFill", Object:=wdOrganizerObjectProjectItems
Application.OrganizerDelete Source:=ActiveDocument.Path & "\" & ActiveDocument.Name, _
Name:="DClean", Object:=wdOrganizerObjectProjectItems
End Sub