Before my hard drive crashed, whenever I opened a new document and then
went to the VBE,

Option Explicit was listed as the first entry on a New Project.

That is the case on my PC at work as well.

After reinstalling Word on my new PC, I can't seem to get Option
Explicit to appear as the default first line. I have checked
Tools>Options>Editor>Require Variable Declarations, but I still have to
manually type in Option Explicit at the start of each new project.

Any ideas how to make Option Explicit appear as default? Thanks

Re: Option Explicit by GN

GN
Thu Jan 19 09:36:31 CST 2006

>
> Any ideas how to make Option Explicit appear as default?
>
In VBA-window: Tools->Options->Editor->"Require Variable Declaration"

Best rgds
Gunnar Nygaard



Re: Option Explicit by Greg

Greg
Thu Jan 19 11:25:47 CST 2006

Gunnar,

Cut from my original post:

"I have checked Tools>Options>Editor>Require Variable Declarations, but
I still have to manually type in Option Explicit at the start of each
new project."

Any other ideas?


Re: Option Explicit by Tony

Tony
Thu Jan 19 12:17:17 CST 2006

AFAIK there is nothing else which controls this.
I'd say it was corruption but you say it's a new installation.

You've not perhaps got an autonew macro which might affect it, have you? Not
that I can imagine how it might (well I can imagine but it would be mighty
unusual).

--
Enjoy,
Tony


"Greg" <gmaxey@mvps.org> wrote in message
news:1137680488.692286.149460@o13g2000cwo.googlegroups.com...
> Before my hard drive crashed, whenever I opened a new document and then
> went to the VBE,
>
> Option Explicit was listed as the first entry on a New Project.
>
> That is the case on my PC at work as well.
>
> After reinstalling Word on my new PC, I can't seem to get Option
> Explicit to appear as the default first line. I have checked
> Tools>Options>Editor>Require Variable Declarations, but I still have to
> manually type in Option Explicit at the start of each new project.
>
> Any ideas how to make Option Explicit appear as default? Thanks
>



Re: Option Explicit by Greg

Greg
Thu Jan 19 13:06:23 CST 2006

Tony,

It is sort of a clean install. I brought my Normal.dot over from the
previous installation. I will try with a default normal.not and see if
that helps.

Thanks.


Re: Option Explicit by Cindy

Cindy
Fri Jan 20 11:37:11 CST 2006

Hi Greg,

> It is sort of a clean install. I brought my Normal.dot over from the
> previous installation. I will try with a default normal.not and see if
> that helps.
>
I'd imagine this setting is saved in the Registry. You might try starting
Word in Safe Mode, see if that makes a difference.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)


Re: Option Explicit by Greg

Greg
Fri Jan 20 11:44:12 CST 2006

Cindy, Tony,

Renamed Normal.Dot and restarted. Option Explicit appeared as
expected. Changed the renamed file back to Normal.Dot and it is still
there.

Probably should plan to clean up my Normal.Dot soon ;-)

Thanks.