Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Option Explicit

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg - 19 Jan 2006 15:01 GMT
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
GN - 19 Jan 2006 15:36 GMT
> Any ideas how to make Option Explicit appear as default?

In VBA-window: Tools->Options->Editor->"Require Variable Declaration"

Best rgds
Gunnar Nygaard
Greg - 19 Jan 2006 17:25 GMT
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?
Tony Jollans - 19 Jan 2006 18:17 GMT
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

> Before my hard drive crashed, whenever I opened a new document and then
> went to the VBE,
[quoted text clipped - 9 lines]
>
> Any ideas how to make Option Explicit appear as default?  Thanks
Greg - 19 Jan 2006 19:06 GMT
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.
Cindy M  -WordMVP- - 20 Jan 2006 17:37 GMT
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 :-)
Greg - 20 Jan 2006 17:44 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.