Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Jun 2001
    Location
    York, Pennsylvania, USA
    Posts
    164
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Minimize document window (Word 2002)

    I'v got a VBA app in a template which minimizes Word 97 when it's running. This no longer works the same with Word 2002 as it uses a separate workspace for each additional document opened/created.

    Is there any way to 'globally' minimize Word 2002 document windows?

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Dublin, Ireland, Republic of
    Posts
    2,697
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Minimize document window (Word 2002)

    The following code should minimise all Document windows :<pre> Sub MinimiseAll()
    Dim oWind As Window
    For Each oWind In Application.Windows
    oWind.WindowState = wdWindowStateMinimize
    Next
    End Sub</pre>

    Or you could use <pre> Application.Visible = False</pre>

    depending on what you want to achieve, and return to normal with <pre> Application.Visible = True</pre>



    Andrew C

  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: Minimize document window (Word 2002)

    Obviously all debugging must be complete before using that latter version!

  4. #4
    2 Star Lounger
    Join Date
    Jun 2001
    Location
    York, Pennsylvania, USA
    Posts
    164
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Re: Minimize document window (Word 2002)

    Thanks, Andrew. Works like a charm.

Posting Permissions

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