• Selecting unkown amounts of text (W97)

    Author
    Topic
    #378465

    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

    Viewing 0 reply threads
    Author
    Replies
    • #626612

      If your cursor is in “4.0 Requirements”, then

      • #626613

        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:

        Sub SelectionToggleActiveEnd()
            With Selection
               .StartIsActive = Not .StartIsActive
            End With
        End Sub

        It comes in handy rather often.

        cheers Klaus

    Viewing 0 reply threads
    Reply To: Selecting unkown amounts of text (W97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: