Option Explicit

G

Greg

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
 
G

Greg

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?
 
T

Tony Jollans

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).
 
G

Greg

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.
 
C

Cindy M -WordMVP-

<[email protected]>
<[email protected]>
Newsgroups: microsoft.public.word.vba.general
NNTP-Posting-Host: 228.80.3.213.cust.bluewin.ch 213.3.80.228
Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!msrtrans!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
Lines: 1
Xref: number1.nntp.dca.giganews.com microsoft.public.word.vba.general:79540

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 :)
 
G

Greg

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.
 

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