Reply
 
Thread Tools Display Modes
  #1   Report Post  
hpmted
 
Posts: n/a
Default 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   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
  #3   Report Post  
hpmted
 
Posts: n/a
Default

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.

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:49 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"