How can I prevent Word from running macros automatically when I create a new instance of Word, open a Word document or create a new one?

Article contributed by Jonathan West

If you are running a macro that opens (or creates) several files, the last thing you may want is for an AutoOpen (or AutoNew) macro to fire up each time. For this you can use:

WordBasic.DisableAutoMacros 1   'Disables auto macros
WordBasic.DisableAutoMacros 0   'Enables auto macros

This command is also very useful when launching an instance of Word from another application, or from VB, when you will generally not want any AutoExec macros to fire.

Download the old WordBasic help file here