M
Meena Bhashyam
Hi,
I am trying to remove macros from my document with the following code:
For Each objComponent In objWordDoc.VBProject.VBComponents
If objComponent.Name <> "ThisDocument" Then
objWordDoc.VBProject.VBComponents.Remove objComponent
End If
Next
objWordDoc.Save
Somehow, when I open up the file by double-clicking on it, it asks me again
about disabling/enabling macros. However, when I try to view the macros, the
list is empty.
Would anybody be able to help me completely delete the macros?
Thanks,
Meena
I am trying to remove macros from my document with the following code:
For Each objComponent In objWordDoc.VBProject.VBComponents
If objComponent.Name <> "ThisDocument" Then
objWordDoc.VBProject.VBComponents.Remove objComponent
End If
Next
objWordDoc.Save
Somehow, when I open up the file by double-clicking on it, it asks me again
about disabling/enabling macros. However, when I try to view the macros, the
list is empty.
Would anybody be able to help me completely delete the macros?
Thanks,
Meena