Results 1 to 10 of 10

Thread: Textboxes (XP)

  1. #1
    2 Star Lounger
    Join Date
    Feb 2002
    Location
    Taranaki, New Zealand
    Posts
    193
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Textboxes (XP)

    Which keyboard shortcut do I use to move from one textbox to another ?? This rather than use the mouse.

  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: Textboxes (XP)

    If you mean the "placeholders" that exist on the slide, see the following from online help:

    <big>Keys for moving around in text</big>
    <table border=1><td>Press</td> <td>To move</td><td>LEFT ARROW</td> <td>One character to the left</td><td>RIGHT ARROW</td> <td>One character to the right</td><td>UP ARROW</td> <td>One line up</td><td>DOWN ARROW</td> <td>One line down</td><td>CTRL+LEFT ARROW</td> <td>One word to the left</td><td>CTRL+RIGHT ARROW</td> <td>One word to the right</td><td>END</td> <td>To the end of a line</td><td>HOME</td> <td>To the beginning of a line</td><td>CTRL+UP ARROW</td> <td>Up one paragraph</td><tr><td>CTRL+DOWN ARROW

  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: Textboxes (XP)

    To move to textboxes which are not "placeholders" requires a macro. Here's one:
    <pre>Option Explicit
    Sub SelectNextTextRange()
    'Cycles through shapes capable of holding text on a slide
    'Jefferson Scher 2002-07-04
    'Detect certain untenable situations, notify user, exit
    ' The selection is not in a slide
    If ActiveWindow.ActivePane.ViewType <> ppViewSlide Then
    MsgBox "This only works when you are in a slide."
    Exit Sub
    End If
    Dim slcn As Selection
    Set slcn = ActiveWindow.Selection
    ' The selection is not on an object on a slide
    If slcn.Type = ppSelectionNone Then
    MsgBox "Select a shape first, then try again."
    GoTo Cleanup
    End If
    ' There is only one shape on the slide
    If slcn.SlideRange.Shapes.Count = 1 Then
    MsgBox "Since there is only one shape, I have nowhere to go."
    GoTo Cleanup
    End If

    Dim intStartShapeNum As Integer, intNextShapeNum As Integer
    Dim intCounter As Integer, shp As Shape, txtRng As TextRange
    'Capture the selected shape's index number in the shapes collection
    intStartShapeNum = slcn.ShapeRange.ZOrderPosition
    With slcn.SlideRange
    For intCounter = 1 To (.Shapes.Count - 1)
    'Calculate the "next" shape in the collection; in some cases
    ' this may be earlier in the collection
    intNextShapeNum = intStartShapeNum + intCounter
    If intNextShapeNum > .Shapes.Count Then
    intNextShapeNum = intNextShapeNum Mod .Shapes.Count
    End If
    'This really shouldn't happen, but just in case
    If intNextShapeNum = 0 Then
    MsgBox "Weird error counting shapes. Unable to move."
    GoTo Cleanup
    End If
    'Set an object reference to the next shape and check its
    ' textframe prowess; if it has one, select its text and exit
    Set shp = .Shapes.Item(intNextShapeNum)
    If shp.HasTextFrame = msoTrue Then
    shp.TextFrame.TextRange.Select
    'Would be nice to make an insertion point, but no can do
    'SendKeys "{LEFT}" 'problem if user still has Alt down
    Exit For
    End If
    Next
    End With

    Cleanup:
    'De-reference objects
    If Not shp Is Nothing Then Set shp = Nothing
    If Not slcn Is Nothing Then Set slcn = Nothing
    End Sub</pre>

    PowerPoint 2000, unlike Word, has no way to assign a shortcut key directly to a macro. (Don't know if this has been remedied in PowerPoint 2002.) The workaround is to create a toolbar button for the macro that displays a textual label, and assign an accelerator key in the textual label. I picked "N" and it can be "pressed" with Alt+N. Thus, repeatedly pressing Alt+N will cycle through all of the textboxes on a slide.
    Attached Images Attached Images

  4. #4
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Textboxes (XP)

    Use of tab, when you have an object selected, will go to the next object. Use of Shift+tab goes in the reverse direction. Note this was tested for ppt 2000.

    However, this is for any kind of shape, regardless of whether it has a textbox property. Of course, if you only have textbox shapes (eg, no arrows or lines), then this will give you what you want, I think.

    I'm not exactly sure of the meaning of textboxes as Jefferson used from the Help. I put together a quick test. Created several items (rectangles, ovals, textboxes) with text in them plus placeholders. Used the Control+Enter. It only went to the text placeholders (titles, subtitles, bullets) and not the other items. As already noted, it doesn't cycle and you can't add Shift to go in the reverse direction.

    Fred

  5. #5
    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: Textboxes (XP)

    In my experimenting, I found that once the insertion point enters the textbox part of the object, that is, the selection is not on the outer frame of the object, tab changes meaning and can't be used for navigation. If you press Esc inside a textbox, I think that backs off the selection to the object container and then you could use tab, but that's just late Friday afternoon speculation at this point. And you'd still have to click the mouse to get inside the object, so... it's not the ideal solution.

  6. #6
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Textboxes (XP)

    For even later Fri afternoon experimenting, I found all you said is true:
    - in a text box, tab is a...tab
    - ESC while in a text box backs off to the container

    I don't think we knew what the original poster had in mind as a starting point-still not sure what "text boxes" needed to be visited. I tried Cntl+Enter and that only visited placeholder boxes. I didn't try your macro but it seemed, looking at the code, it might do what Tab does w/o the issue of being concerned where you were.

    BTW: when transitioning to a new slide, you're initially in "shape selection" mode so tab will visit the shapes.

    Fred

  7. #7
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Ohio, USA
    Posts
    163
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Textboxes (XP)

    I assume this issue is during the creation process and not during a presentation?

  8. #8
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Textboxes (XP)

    Grant,

    certainly my comments do not apply to Slide Show view. However, some people use Slide view, to which my comments did apply, kind of like a slide show. It is more likely that one would use tab (or Jefferson's macro perhaps) to go from text box to text box during the creation process than during a review of the slides - either of them in Slide view.

    Fred

  9. #9
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Memphis, Tennessee, USA
    Posts
    243
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Textboxes (XP)

    To add my technique to the other great suggestions, I've always used F2,Tab. F2 takes you from editing within the object (I call edit mode) to the placeholder (I call object mode). Tab then takes you to the next placeholder object. F2 will then take you into the edit mode of that next object, and so on. I've used this through several versions and it is just natural to me now, so I don't know if it will work wonders for others. <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>

    -Lenny

  10. #10
    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: Textboxes (XP)

    It's funny how many uses the F2 key has. I just started using it to edit names of files in Windows Explorer. Right-clicking is nice, but keyboarding is better. <img src=/S/wink.gif border=0 alt=wink width=15 height=15>

Posting Permissions

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