Results 1 to 8 of 8
  1. #1
    New Lounger
    Join Date
    May 2001
    Location
    Cheshire, England
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Recommended Compatibility Options (w2000)

    I would like to check (using code) what the current 'Recommended Options for:' is set to (under Tools, Options, Compatibility) on the document I am currently working on.
    eg, Word 2000/Word 97/Custom etc.
    I didn't want to have to check what all the associated values of each setting were.
    Is there a way to do this?

  2. #2
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Recommended Compatibility Options (w2000)

    I don't think so <img src=/S/frown.gif border=0 alt=frown width=15 height=15>

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>Klaus

  3. #3
    Star Lounger
    Join Date
    Jun 2002
    Posts
    98
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Recommended Compatibility Options (w2000)

    MsgBox Dialogs(wdDialogToolsOptionsCompatibility).Product
    __________________________________________________ ____
    <img src=/S/nun.gif border=0 alt=nun width=20 height=20> Sister Dory
    Our Lady of Perpetual Help, Holstein Falls, Wisconsin, USA

  4. #4
    New Lounger
    Join Date
    May 2001
    Location
    Cheshire, England
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Recommended Compatibility Options (w2000)

    Thanks so much, this is exactly what I was after.

  5. #5
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Recommended Compatibility Options (w2000)

    Drat, should have known that!
    Thanks for catching my blunder,
    <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>Klaus

  6. #6
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Recommended Compatibility Options (w2000)

    Hey Klaus - don't beat yourself up! <img src=/S/bash.gif border=0 alt=bash width=35 height=39> - that's a great tip and I don't think it's ever been posted (not here anyway) - thanks Dory. <img src=/S/fanfare.gif border=0 alt=fanfare width=31 height=23>

    Now, can anyone figure out a way to use "Product" to set a document's compatibility? - that would make it really useful (can't get it to work - perhaps it's a read-ony property <img src=/S/sad.gif border=0 alt=sad width=15 height=15>)

    Gary

  7. #7
    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: Recommended Compatibility Options (w2000)

    It's strange, I can re-set it to some extent using the WordBasic object, but it doesn't seem to actually apply it to the document.

    (From the debug window)

    set obj1 = WordBasic.DialogRecord.ToolsOptionsCompatibility
    ?obj1.product
    Microsoft Word 2000
    obj1.product = "Microsoft Word 97"
    ?obj1.product
    Microsoft Word 97
    WordBasic.ToolsOptionsCompatibility obj1
    ?obj1.product
    Microsoft Word 97

    Not sure what the missing link is...

  8. #8
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Recommended Compatibility Options (w2000)

    Yes, <img src=/S/clapping.gif border=0 alt=clapping width=19 height=23> Dory!

    Was miffed a bit <img src=/S/blush.gif border=0 alt=blush width=15 height=15> that I didn't think of that because I just took a close look at the dialogs a few weeks ago

    I haven't used Jefferson's <img src=/S/new.gif border=0 alt=new width=35 height=15> .DialogRecord before; my own try would have looked like:

    ' (Assumes that the setting isn't "Microsoft Word 97")
    Dim myDlg As Dialog
    Set myDlg = Dialogs(wdDialogToolsOptionsCompatibility)
    myDlg.Product = "Microsoft Word 97"
    myDlg.Execute
    MsgBox myDlg.Product = "Microsoft Word 97"
    ' Looks good!
    myDlg.Update
    MsgBox myDlg.Product = "Microsoft Word 97"
    ' Duh!

    In Word 95, if you set .Product and any other option that conflicted with .Product, .Product was ignored. My guess is that the new options of Word97/2000(/2002) result in .Product always being ignored.

    Once bitten, twice shy, but again I think it can't be done.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>Klaus

Posting Permissions

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