locked
Activate next window RRS feed

  • Question


  • I'm seeking 'Activate Next Window' to use in a macro.  
    For Word 2010 Office Professional

    Ctrl-F6 does work and does create ActiveWindow.Next.Activate in macro recordings.  However, "ActiveWindow.Next.Activate" does not work in the macro.

    Puzzles me.

    Any advice appreciated
    Monday, July 22, 2013 8:30 PM

Answers

  • Hi,

    Try the following code:

    This example activates the next window in the Windows collection.
    Sub NextWindow()
        'Two or more documents must be open for this statement to execute.
        ActiveDocument.ActiveWindow.Next.Activate
    End Sub
       


    Jaynet Zhang
    TechNet Community Support

    • Marked as answer by Jaynet Zhang Monday, July 29, 2013 9:50 AM
    Tuesday, July 23, 2013 8:28 AM