Results 1 to 6 of 6
  1. #1
    3 Star Lounger
    Join Date
    Apr 2001
    Location
    Levin, Manawatu-Wanganui, New Zealand
    Posts
    324
    Thanks
    9
    Thanked 28 Times in 26 Posts

    What determines state of Word on start up (Word 2000 & XP)

    Good morning (KIWI time)
    Can someone tell me what determines how Word appears at startup of a session
    View, normal or pageLayout
    Ruler, present or not
    zoom factor.

    Are these setting saved on exit ?
    Will it vary with templates.

    The question surfaces from a user complaint.


    Regards
    Geof

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: What determines state of Word on start up (Word 2000 & XP)

    The settings "how Word appears" are stored in the user's normal.dot and in the registry. Any changes made to Word options during the session are saved when Word closes.

    Add-ins, global templates, document templates and documents can all alter Word settings (via VBA code).
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    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: What determines state of Word on start up (Word 2000 & XP)

    Word doesn't save view changes unless something in the document or its options has changed. To save a view change, also add and delete a space in the body of the document (for example) before saving. (For historical reasons, this often is called "dirtying" the document, and if you would like to read more about this subject, search this board for dirty and view.)

  4. #4
    3 Star Lounger
    Join Date
    Apr 2001
    Location
    Levin, Manawatu-Wanganui, New Zealand
    Posts
    324
    Thanks
    9
    Thanked 28 Times in 26 Posts

    Re: What determines state of Word on start up (Word 2000 & XP)

    Thanks Kevin & Jefferson.

    I put this code into the 'myDocument' object of the user's normal.dot

    Use didn't want to worry about how/ where /when state of last document.
    ============
    sub document_open
    With ActiveDocument.ActiveWindow
    '.View.Type = wdPrintView
    .View.Type = wdNormalView
    '.DisplayVerticalRuler = True
    .DisplayRulers = True
    .ActivePane.View.Zoom.Percentage = 100

    End With

    end sub
    ====================
    Seems to have done the trick. It wont have solved every case but ...
    Geof

  5. #5
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: What determines state of Word on start up (Word 2000 & XP)

    Geof,

    Back in mid December, there was a post by someone whose Word documents mysteriously started showing gray lines - sometimes horizontal, sometimes vertical, sometimes both. It was determined that these were grid lines (available starting with Word 2000) but you'd only see them if your zoom were high enough.

    This lead to a suggestion from me that it would be desirable to have a macro called something like ViewItMyWay. Jefferson suggested just going thru various dialogs and setting/checking the options to get a listing of the code. That's a good start. Don't know if you did that here for your few statements. Anyway, this is a straightforward exercise which I just did on this Word 97 machine. Be glad to post it if interested.

    Don't know if you'd want something like this in an Open event. You could include an Input box to determine if the macro should be run.

    Where my skills leave off would be creating a user form that has all the options and allows the user to reset them. I'd just change the macro statements doing it the hard way.

    If certain changes are to be made, then, as Jefferson said, the macro has to dirty the document.

    Fred

  6. #6
    3 Star Lounger
    Join Date
    Apr 2001
    Location
    Levin, Manawatu-Wanganui, New Zealand
    Posts
    324
    Thanks
    9
    Thanked 28 Times in 26 Posts

    Re: What determines state of Word on start up (Word 2000 & XP)

    Hi Fred
    Thanks for the thoughts.

    I am seriously thinking about trying to cobble a routine that checks for alterations to registry settings during a session and then prompting the user to accept a 'standard' set of reg entries to be rewritten ...
    I dont know whether this is desirable or even required. It might be a case of sledge hammers for nut crackers and dangerous as well.

    Geof

Posting Permissions

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