Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How do I turn select text on and use Find to select a block of te.
In old parlance I want to turn on a block (select text) and block to where
Find stops. For example, in a macro I find a point, start select text and go to the point where a key word appears, then delete the block. |
#2
|
|||
|
|||
On Mon, 11 Apr 2005 15:44:02 -0700, hpmted
wrote: In old parlance I want to turn on a block (select text) and block to where Find stops. For example, in a macro I find a point, start select text and go to the point where a key word appears, then delete the block. In Word, "block select mode" is called Extend mode. You turn it on and off by pressing F8 or double-clicking the letters EXT in the status bar. You can turn Extend mode on, then use the Find dialog to find the key word. When it's found, you can close the dialog and press the Delete key. You'll have to turn off Extend mode explicitly. To do it with a macro, try this: Sub BlockFindDelete() Selection.ExtendMode = True Dialogs(wdDialogEditFind).Show Selection.Delete Selection.ExtendMode = False End Sub -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org |
#3
|
|||
|
|||
Thank you VERY much this was exactly what I was looking for - I knew it had
to be there somewhere and this was a clean, clear solution. Best Regards, Ted "hpmted" wrote: In old parlance I want to turn on a block (select text) and block to where Find stops. For example, in a macro I find a point, start select text and go to the point where a key word appears, then delete the block. |