Results 1 to 12 of 12
  1. #1
    Star Lounger
    Join Date
    Jan 2001
    Location
    New York, New York, USA
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Always open in normal view (Word 2000 SR2; NT4)

    One of my attorneys would like to force all documents to always open in normal view. I'm assuming a macro is needed but I have no idea of how to write this one. Any help is appreciated.

    As always, thanks.

  2. #2
    3 Star Lounger
    Join Date
    Feb 2001
    Location
    Willow Grove, Pennsylvania, USA
    Posts
    205
    Thanks
    4
    Thanked 49 Times in 40 Posts

    Re: Always open in normal view (Word 2000 SR2; NT4)

    I'll assume that you mean the attorney wants to see Normal view whenever he opens a document, and not that he wants to force other people to open his documents in Normal view. (I never underestimate the arrogance of an attorney <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>, but the latter would be a really bad idea.)

    Put this macro in the attorney's Normal.dot, or in a template located in his Word Startup folder:
    <pre>Public Sub FileOpen()
    If Dialogs(wdDialogFileOpen).Show = -1 Then
    ActiveDocument.ActiveWindow.View.Type = wdNormalView
    End If
    End Sub
    </pre>


  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Always open in normal view (Word 2000 SR2; NT4)

    That's a great idea, 'cos I prefer to use documents in page layout view but the users I produce documents for use normal view.

    Would you mind telling me if there's an equivalent for when you save/close the docs to return them to normal view? I did have a look but I couldn't quite get it to work ...
    Beryl M


  4. #4
    Star Lounger
    Join Date
    Jan 2001
    Location
    New York, New York, USA
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Always open in normal view (Word 2000 SR2; NT4)

    That's great. Works like a charm. Thanks so much.

  5. #5
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Always open in normal view (Word 2000 SR2; NT4)

    Jay, sorry to bug you, but would you mind letting me know if there is a way to do the reverse on closing a document? As I mentioned in my previous post, I have to produce templates for my users in normal view, but prefer to use page layout view myself, so I would love to be able to set my documents to open in page layout view, then save in normal view before closing.

    I've tried to work it out but can't get it to work <img src=/S/help.gif border=0 alt=help width=23 height=15> ... I really would appreciate it your assistance! <img src=/S/grovel.gif border=0 alt=grovel width=31 height=23>
    Beryl M


  6. #6
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Always open in normal view (Word 2000 SR2; NT4)

    Use an AutoOpen macro to set the view.

  7. #7
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Always open in normal view (Word 2000 SR2; NT4)

    Howard, thanks for that - but do you know of the equivalent one to set it back again when I close the document?

    Any help would be appreciated.
    Beryl M


  8. #8
    BAM
    Guest

    Re: Always open in normal view (Word 2000 SR2; NT4)

    Hi shatzie,

    You might want to change the macro name to AutoOpen instead of FileOpen.

    If the document is opened from the MRU list the macro will not fire. Of course if the document is saved in Normal view and then re-opened from the MRU list, then it will open in the view it was saved in. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
    ~~~~~~~~~~~~~~~
    Cheers! <img src=/S/flags/USA.gif border=0 alt=USA width=30 height=18>

  9. #9
    BAM
    Guest

    Re: Always open in normal view (Word 2000 SR2; NT4)

    Hi Beryl,

    Use the AutoClose event.
    ~~~~~~~~~~~~
    Cheers! <img src=/S/flags/USA.gif border=0 alt=USA width=30 height=18>

  10. #10
    3 Star Lounger
    Join Date
    Feb 2001
    Location
    Willow Grove, Pennsylvania, USA
    Posts
    205
    Thanks
    4
    Thanked 49 Times in 40 Posts

    Re: Always open in normal view (Word 2000 SR2; NT4)

    I think this works in Word 97 and 2000, and for all the ways of closing a document. If you can find a situation where it doesn't work, let me know.

    <pre>Sub AutoClose()
    With ActiveDocument
    .ActiveWindow.View.Type = wdNormalView
    .Saved = False
    .Save
    End With
    End Sub</pre>


  11. #11
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Always open in normal view (Word 2000 SR2; NT4)

    Thanks, Jay (and BAM) - a combination of your answers has enabled me to sort it. It got a bit more complicated because there are occasions when I want to close the document WITHOUT saving any changes (because I need the edited date to stay as was) but I got round that by adding a yesno msgbox for when the document is currently unsaved ...

    Many thanks to all!
    Beryl M


  12. #12
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Always open in normal view (Word 2000 SR2; NT4)

    IN AutoOpen, use a Public variable to save the current view.

    Use that variable to reset the view whenever you want to,

Posting Permissions

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