A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How can I tell a macro to go to . . .



 
 
Thread Tools Display Modes
  #1  
Old December 4th, 2009, 07:27 AM posted to microsoft.public.word.newusers
InOverMyHead[_4_]
external usenet poster
 
Posts: 18
Default How can I tell a macro to go to . . .

How can I tell a macro to go to a coma, then select everything from there to
the next coma, then delete selection?

Any help would be greatly appreciated.

Bob


  #2  
Old December 4th, 2009, 10:07 AM posted to microsoft.public.word.newusers
Terry Farrell
external usenet poster
 
Posts: 3,004
Default How can I tell a macro to go to . . .

No macro needed:

Click the insertion point where you need to start the selection
Press F8 (turns on Extend Selection Mode)
Press comma (Word extends a selection from the insertion point to the next
letter pressed - in this case the comma)
Press Delete.

The Extend Selection command is often overlooked in Word but is most useful.
Above is how to extend from the insertion point to the next character typed
(note that you can repeat entering the characters and the extend selection
will continue until it is cancelled). So to select sentences, you press F8
followed by the STOP until you have selected all the sentences you need.
Press ESC to end Extend Selection.

Other functions of Extend Selection a

F8 initiates Extend Selection
F8 + F8 selects next word to the right of the insertion point
F8 + F8 + F8 selects the current sentence
F8 + F8 + F8 + F8 selects the current paragraph
F8 + F8 + F8 + F8 + F8 selects the current section (if more than one
section) or document
F8 + F8 + F8 + F8 + F8 + F8 selects the current document (if more than one
section)

Press the ESC key to cancel Extend Selection.

--
Terry Farrell - MSWord MVP

"InOverMyHead" wrote in message
...
How can I tell a macro to go to a coma, then select everything from there
to the next coma, then delete selection?

Any help would be greatly appreciated.

Bob

  #3  
Old December 4th, 2009, 10:16 AM posted to microsoft.public.word.newusers
DeanH
external usenet poster
 
Posts: 1,783
Default How can I tell a macro to go to . . .

You don't need a macro, a Find/Replace with widlcards will do this.
\,[+0-9A-z).( –_-]{1,}\,
will select every thing from one comma to the next, including the commas,
just leave the Repalce with box empty and the selection will be deleted.
Remember to check the Use Wildcards in the More options.
--
Hope this helps
DeanH


"InOverMyHead" wrote:

How can I tell a macro to go to a coma, then select everything from there to
the next coma, then delete selection?

Any help would be greatly appreciated.

Bob


.

  #4  
Old December 4th, 2009, 10:27 AM posted to microsoft.public.word.newusers
DeanH
external usenet poster
 
Posts: 1,783
Default How can I tell a macro to go to . . .

Forgot to say, see
http://word.mvps.org/faqs/general/UsingWildcards.htm
http://www.gmayor.com/replace_using_wildcards.htm
for further information on Wildcards.
--
Hope this helps
DeanH

"InOverMyHead" wrote:

How can I tell a macro to go to a coma, then select everything from there to
the next coma, then delete selection?

Any help would be greatly appreciated.

Bob


.

  #5  
Old December 4th, 2009, 10:50 AM posted to microsoft.public.word.newusers
DeanH
external usenet poster
 
Posts: 1,783
Default How can I tell a macro to go to . . .

Terry, very true, F8 is a very useful tool, also don't forget SHIFT+F8 to
reduce the size of a selection.

DeanH


"Terry Farrell" wrote:

No macro needed:

Click the insertion point where you need to start the selection
Press F8 (turns on Extend Selection Mode)
Press comma (Word extends a selection from the insertion point to the next
letter pressed - in this case the comma)
Press Delete.

The Extend Selection command is often overlooked in Word but is most useful.
Above is how to extend from the insertion point to the next character typed
(note that you can repeat entering the characters and the extend selection
will continue until it is cancelled). So to select sentences, you press F8
followed by the STOP until you have selected all the sentences you need.
Press ESC to end Extend Selection.

Other functions of Extend Selection a

F8 initiates Extend Selection
F8 + F8 selects next word to the right of the insertion point
F8 + F8 + F8 selects the current sentence
F8 + F8 + F8 + F8 selects the current paragraph
F8 + F8 + F8 + F8 + F8 selects the current section (if more than one
section) or document
F8 + F8 + F8 + F8 + F8 + F8 selects the current document (if more than one
section)

Press the ESC key to cancel Extend Selection.

--
Terry Farrell - MSWord MVP

"InOverMyHead" wrote in message
...
How can I tell a macro to go to a coma, then select everything from there
to the next coma, then delete selection?

Any help would be greatly appreciated.

Bob

.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.