Results 1 to 9 of 9
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What pane am I? (Word XP)

    As far as I can see, the little macro below does what I want - flips me between two panes of a document which has been Windows, Split.
    Hooked up to a shortcut key I'm as happy as a monkey in a truckload of bananas.

    I know little else about panes, and would appreciate extensions to my knowledge.

    For example, I seem to be able to create only two panes by the Windows, Split technique. How would I get myself three panes (besides needing a bigger monitor)?

    Where do Header/Footer panes come into this? Choosing View Header seems to take me to a different level of pane within one of my (two) split panes, rather than into a third pane.
    <pre>Public Function lngWhatPane() As Long
    Dim lng As Long
    For lng = 1 To ActiveWindow.Panes.Count
    If Selection.Start = ActiveWindow.Panes(lng).Selection.Start Then
    lngWhatPane = lng
    Else
    End If
    Next lng
    'Sub TESTlngWhatPane()
    ' MsgBox lngWhatPane
    'End Sub
    End Function
    Public Sub RotatePane()
    Dim lng As Long
    lng = lngWhatPane
    If lng < ActiveWindow.Panes.Count Then
    lng = lng + 1
    Else
    lng = 1
    End If
    ActiveWindow.Panes(lng).Activate
    End Sub
    </pre>


  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: What pane am I? (Word XP)

    Word offers only 2 panes for the main document. There can be additional panes for Header/Footer and for Footnotes; you cannot use these to divide the main document into three panes.

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: What pane am I? (Word XP)

    > Word offers only 2 panes for the main document.
    Hans, thanks for the confirmation.

    So right now my cycling (lng = lng + 1) could be replaced by a toggle.
    I wrote it because I couldn't find a shortcut key to toggle between the two document panes.

  4. #4
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: What pane am I? (Word XP)

    Do you mean like f6 does?
    Regards,
    Rory

    Microsoft MVP - Excel

  5. #5
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: What pane am I? (Word XP)

    > Do you mean like f6 does?

    Yes, Rory, exactly like F6 does. Now you've got the hang of it .....


    (Grrrrrrrrrrr! I was trying Ctrl-F6, and was most puzzled that that didn't work. The Help files didn't suggest a shortcut either. Oh well, it was fun writing a bit of VBA .....)

  6. #6
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: What pane am I? (Word XP)

    Ah, you probably know that in Word Ctrl-F6 toggles between documents; and that shortcut's been in the Help for a long time AFAIK.
    -John ... I float in liquid gardens
    UTC -7ąDS

  7. #7
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: What pane am I? (Word XP)

    I know, I know.(grin)
    I used Ctrl-F6 (actually I remapped it to Ctrl-Tab to be consistent with Excel) when dabbling with panes. It flipped me between documents. That's when I knew there had to be a different sequence for flipping between (split) panes.
    I just didn't know to let go the Ctrl key. Sometimes I figure my left thumb is super-glued to the Ctrl-Key.

  8. #8
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: What pane am I? (Word XP)

    >Please do not hijack this thread with comments about bananas or cats.

    Me? Never. <img src=/S/innocent.gif border=0 alt=innocent width=20 height=20>

    For your amusement you'll find that in Excel Ctrl-F6 also switches between workbooks as Ctrl-Tab does, and unless you provided a substitute mapping in Word, when you remapped Ctrl-Tab you likely lost the ability to insert a tab in a Word table via keyboard.
    -John ... I float in liquid gardens
    UTC -7ąDS

  9. #9
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: What pane am I? (Word XP)

    > a tab in a Word table via keyboard.

    In this household that's slightly less welcome than a Tarantula in Torontulo.

    I am probably stll living in 1997. Office 97 was inconsistent (it seemed to me) between Word97 & Excel 97. Switching between documents was Ctrl-Tab in one but not the other, or Ctrl-F6 in one but not the other. That's when I said "the heck with it" and remapped one of the shortcut keys for consistency.

Posting Permissions

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