Macro to Disable Macros

C

Craig

I have "AutoOpen" Sub in Document XYZ and in end of that sub I kill word
("Application.Quit").

I would like to have document ABC open Document XYZ and do stuff, but in
order for doc XYZ to stay open I'll have to disable the macro. How can I
programmatically open another document with macros disabled?

Thanks in advance,

Craig.
 
J

Jonathan West

Craig said:
I have "AutoOpen" Sub in Document XYZ and in end of that sub I kill word
("Application.Quit").

I would like to have document ABC open Document XYZ and do stuff, but in
order for doc XYZ to stay open I'll have to disable the macro. How can I
programmatically open another document with macros disabled?

Hi Craig,

Take a look at this article

Useful WordBasic commands that have no VBA equivalent
http://word.mvps.org/FAQs/MacrosVBA/WordBasicCommands.htm

Scroll down to the DisableAutoMacros section.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top