Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Jun 2001
    Location
    California
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Show/Hide On at Open (VBA/Word/2002SP3)

    I've taken just enough VBA to know this is simple, and it was just long enough ago that I can't begin to figure out where to start!

    What I want to do it to have the Show/Hide (paragraph marks, etc.) turned ON at all times in a particular document.

    If I can even get a hint I might be able to figure it out! [img]/forums/images/smilies/ohmy.gif[/img])

    Thank you!

  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: Show/Hide On at Open (VBA/Word/2002SP3)

    I'm not sure whether you can save this with the document. Or should I say, it's seems unpredictable to what extent these settings carry over into the next session on one's own or a different computer. But this could be a place to start your investigation:

    ActiveDocument.ActiveWindow.View.ShowAll = True

  3. #3
    4 Star Lounger
    Join Date
    Dec 2003
    Location
    Zoetermeer, Zuid-Holland, Netherlands
    Posts
    559
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Show/Hide On at Open (VBA/Word/2002SP3)

    Switch to the VBA editor with [Alt]+[F11], doubleclick on the ThisDocument module and insert this little macro:

    Private Sub Document_Open
    ThisDocument.ActiveWindow.View.ShowAll = True
    End Sub

Posting Permissions

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