
Signature
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
Thanks Jay, but I had already found this solution and somehow it's still not
working. Where exactly am I supposed to place the following line?:
WordBasic.DisableAutoMacros 1
1) Immediately after I call the Open method on my document object?
2) Before?
3) Is this WordBasic object global? because I open a Word object in my code,
then I leave it in memory while I open and close document objects. At the end
I close my Word object.
Thanks in advance.
Ray
> > I have VBA code that opens a word document using:
> >
[quoted text clipped - 11 lines]
> outside the WordBasic object, the DisableAutoMacros command. It's documented
> at http://www.word.mvps.org/FAQs/MacrosVBA/WordBasicCommands.htm.
Jay Freedman - 24 Mar 2008 21:33 GMT
Hi Ray,
You should put that line before the Open call -- afterward is too late, as
any AutoXX macros would already have run then.
The WordBasic object is global, being a member of the Word.Application
object.
> Thanks Jay, but I had already found this solution and somehow it's
> still not working. Where exactly am I supposed to place the following
[quoted text clipped - 34 lines]
>> Email cannot be acknowledged; please post all follow-ups to the
>> newsgroup so all may benefit.
Graham Mayor - 25 Mar 2008 08:52 GMT
And don't forget to turn the automacros back on again afterwards!

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Hi Ray,
>
[quoted text clipped - 42 lines]
>>> Email cannot be acknowledged; please post all follow-ups to the
>>> newsgroup so all may benefit.