Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Edison, New Jersey, USA
    Posts
    215
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Selecting unkown amounts of text (W97)

    I want to be able to select text between 2 know heading levels (4.0 Requirements and 5.0 Models). The catch is that the number of lines between the two headings may vary. So, via macro, how can I select and delete the "middle" contents?

    I'm thinking I should be able to do some type of Find/Replace... - jody

  2. #2
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Selecting unkown amounts of text (W97)

    If your cursor is in "4.0 Requirements", then

  3. #3
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Selecting unkown amounts of text (W97)

    BTW: While it's easy to add or remove stuff from the end of the Selection with Shift + Arrow keys, it's impossible to add/remove from the start of the Selection.

    Your problem is an example where this would be necessary.

    For those cases, I have a macro with a keyboard shortcut.
    After running the macro, you can edit the start of the selection with Shift + Arrow keys.
    Running the macro once more makes the end of the Selection "active" again:

    <pre>Sub SelectionToggleActiveEnd()
    With Selection
    .StartIsActive = Not .StartIsActive
    End With
    End Sub</pre>


    It comes in handy rather often.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

Posting Permissions

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