>I have created a TOC from multiple documents using the RD field code as
>described in the following:
[quoted text clipped - 8 lines]
>Thanks in advance,
>Barb Reinhardt
I'm not 100% sure this will work, but try putting the line
WordBasic.DisableAutoMacros 1
just before the line
Set oDoc = Documents.Open(FileName:=strCode)
I know it will suppress AutoOpen and AutoExec, just not sure about
AutoClose.
You ought to be aware of
http://www.word.mvps.org/FAQs/MacrosVBA/WordBasicCommands.htm -- it's
very helpful sometimes.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Barb R. - 30 Mar 2005 15:27 GMT
That appears to work, THANKS! I'll look at the link you supplied. I'm sure
that will help me.
Barb Reinhardt
> >I have created a TOC from multiple documents using the RD field code as
> >described in the following:
[quoted text clipped - 28 lines]
> Jay Freedman
> Microsoft Word MVP FAQ: http://word.mvps.org