Results 1 to 7 of 7
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    DisableFeatures (Word XP)

    We've had a problem in Word XP... documents are saving optimized for Word 97, despite the fact that we have compatibility set to Word 2002, DisableFeatures de-selected.

    As a test, I did the following:

    Removed all templates/add-ins from Startup.
    Deleted normal.dot
    Started Word, letter Word create a new normal.dot.
    Exited and re-started Word
    With Normal.dot open...
    under Tools|Options, set Compatilbity to Word 2002
    Save tab: Disable Features: de-selected
    Ran code in VBA: ActiveDocument.DisableFeatures = False
    ActiveDocument.OptimizeForWord 97 = False
    Options.DisableFeaturesByDefault = False
    Options.OptimizeFor Word97ByDefault = False
    Saved normal.dot
    Closed Word.
    Restarted PC.
    Opened Word
    Typed "This is a test" and saved document.
    The document saved with "DisableFeatures introduced after Word 97" checked, and Optimized for Word 97.
    Close document, exited Word.
    Started Word... in VBA, ran code on new, unsaved document MsgBox ActiveDocument.OptimizeForWord 97.... returned TRUE

    Why would this happen? How can I prevent it?

    Thanks,
    Richard Barrett

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: DisableFeatures (Word XP)

    Any chance it's a system policy stored in the registry, overriding your manual settings? It might help to download the following file and review the .adm policy templates to sniff out the setting: Office XP Resource Kit > Toolbox > Tools > System Policy Editor and Templates. Alternately you could check for keys under HKCUSoftwarePoliciesMicrosoftOffice10.0WordOptions and elsewhere in that neighborhood to see if you can spot one.

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: DisableFeatures (Word XP)

    Thanks... I've been fearing that it was a Regsitry setting. Our network folks tell us that they haven't set this as a policy, but it's apparently crept in somehow.

    Richard

  4. #4
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: DisableFeatures (Word XP)

    Here's something interesting.... I've used the following code to test:

    Sub TestSettings()
    With ActiveDocument
    .DisableFeatures = False
    .OptimizeForWord97 = False

    MsgBox .DisableFeatures
    MsgBox .OptimizeForWord97
    End With
    End Sub

    When I run this, both DisAbleFeatures and OptimizeForWord97 display FALSE.

    But if I reverse the order of the statements where I set the options:

    .OptimizeForWord97 = False
    .DisableFeatures = False

    The results are False (for DisableFeatures) and True (for OptimizeForWord97)

    For some reason, setting DisableFeatures to False flips the setting for OptimizeForWord97.

    Also, the code Options.DisableFeaturesByDefault and Options.OptimizeForWord97ByDefault seems to be buggy as well: it affects the document level settings, flipping that in a way similar to the above.

    Any ideas about this?

    Richard

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: DisableFeatures (Word XP)

    That's weird. I have no explanation. Not even a theory.

  6. #6
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: DisableFeatures (Word XP)

    Hi Richard:
    You said you removed all add-ins from startup. Did you remember to check BOTH startup folders & also to check for COM add-ins? The only other thing I can think of is a corruption in the DATA key, so that the option isn't being picked up. See <post#=197827>post 197827</post#> for instructions on what to back up, & to delete & recreate the DATA key.
    Hope this helps,

  7. #7
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: DisableFeatures (Word XP)

    Worse.... I've discovered that the following code in an AutoExec

    Options.DisableFeaturesByDefault = False
    Options OptimizeForWord97ByDefault = False

    causes every new document to be saved with Compatibility set to Word 97... regardless of what I have in the NewDocument event. (ActiveDocument.DisableFeatures = False & ActiveDocument.OptimizeForWord97 = False). Until the document has been saved, a new document shows Compatibility as Word 2002. After saving, it's set to Word 97.

    Once I pull that code out of the AutoExec macro, Compatibility goes back to Word 2002. For whatever reason, the crazy restuls last only for the duration of the session. We got started with all of this because we found that opening Word 97 documents sometimes caused the application default to flip to Word 97 compatibility, with DisableFeatures checked for features introduced after Word 97. The flipping occured especially when document were open from email messags or Explorer. Opening from Word (File|Open) or from the DMS didn't have that effect.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •