View Single Post
  #2   Report Post  
Jay Freedman
 
Posts: n/a
Default

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