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 / August 2007

Tip: Looking for answers? Try searching our database.

disbale features after word 97

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Melissa - 09 Aug 2007 05:24 GMT
Hi there,

We received some code from a developer that was supposed to set a variety of
settings when word is first opened or when a document is created or opened,
and since receiving it the disable features box in Tools, options, save keeps
becoming checked when we try to save.  Even if I open the document and check
that it is off, when I try to save the document it becomes checked.  

I thought that it was the following code that determines whether it is
checked or not (which appears in my normal.dot template and my startup.dot
template), but can't understand why the box becomes checked on the save.

Should I be looking for something else that is causing this?

Sub AutoOpen()
With ActiveDocument
       .DisableFeatures = False
       .Compatibility(wdDontUseHTMLParagraphAutoSpacing) = False
End With
End Sub

Sub AutoNew()
With ActiveDocument
       .DisableFeatures = False
       .Compatibility(wdDontUseHTMLParagraphAutoSpacing) = False
End With
End Sub

Any suggestions would be very welcomed, as this is causing headaches across
the office.

Thank you,
Melissa
Beeawwb - 09 Aug 2007 06:28 GMT
Hi Melissa,

Not sure if this will help, but when I ran the Macro recorder to see what
functions were changed when I ticked the box (I've never had it ticked
before), the options that look relevant to me are...

   With Options
       .DisableFeaturesbyDefault = True
       .DisableFeaturesIntroducedAfterbyDefault = wd80
       .OptimizeForWord97byDefault = True
   End With
   With ActiveDocument
       .DisableFeatures = True
       .DisableFeaturesIntroducedAfter = wd80
       .OptimizeForWord97 = True
   End With

Maybe check that .DisableFeaturesIntroducedAfter isn't being used anywhere
in the code...?

Sorry I can't be of any more assistance,

-Bob

> Hi there,
>
[quoted text clipped - 29 lines]
> Thank you,
> Melissa
Russ - 12 Aug 2007 18:22 GMT
Melissa,
I would search for the word
Disable
In the whole project code.

What you showed, is code that runs when first opening the docs.
You may have other code that is intercepting commands to save, for example,
that are changing the option.

> Hi Melissa,
>
[quoted text clipped - 53 lines]
>> Thank you,
>> Melissa

Signature

Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID

 
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.