Hi JR
JR wrote:
> Is there a way to programatically remove all macros from a document?
> I am trying to clean up a bunch of documents so am looping thru them
> applying:
>
> WordBasic.AcceptAllChangesInDoc
> WordBasic.DeleteAllCommentsInDoc
>
> right now, however need to also remove all macros from the document as
> part of this process. Having trouble finding the code to accomplish
> this.
I can't provide code, but I found an old discussion here:
http://groups.google.com/group/micro...%3A*word.vba*#
Basically, there seem to be two natural approaches:
1. Use the organizer to get rid of macro project elements, or
2. Do a round-trip save through RTF.
For starters, you can record a macro doing either, and look at the
objects and properties used.
HTH
Robert
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word