Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replacing
Is there anyway of replacing certain parts of words using a wildcard for
example how do I change all words in a list beginning with m and ending in t to begin with n and end with s leaving all other letters the same? Thanks |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replacing
In the EditReplace dialog, click on the More button and check the "Use
wildcards" box and then in the Find what control, enter (m)(*)(t) and in the Replace with Control, enter n\2s Then click on Replace all. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Marc Grant" Marc wrote in message ... Is there anyway of replacing certain parts of words using a wildcard for example how do I change all words in a list beginning with m and ending in t to begin with n and end with s leaving all other letters the same? Thanks |
#3
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replacing
Doug
It works brilliantly - thanks for that. Can this be used to replace tabs in the same way i.e. ^tMichael^t to change to Michael where Michael would be the name that changes "Doug Robbins - Word MVP" wrote: In the EditReplace dialog, click on the More button and check the "Use wildcards" box and then in the Find what control, enter (m)(*)(t) and in the Replace with Control, enter n\2s Then click on Replace all. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Marc Grant" Marc wrote in message ... Is there anyway of replacing certain parts of words using a wildcard for example how do I change all words in a list beginning with m and ending in t to begin with n and end with s leaving all other letters the same? Thanks |
#4
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replacing
You don't really need the brackets around m and t
m(*)t replace with n\1s would work just as well. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Doug Robbins - Word MVP wrote: In the EditReplace dialog, click on the More button and check the "Use wildcards" box and then in the Find what control, enter (m)(*)(t) and in the Replace with Control, enter n\2s Then click on Replace all. "Marc Grant" Marc wrote in message ... Is there anyway of replacing certain parts of words using a wildcard for example how do I change all words in a list beginning with m and ending in t to begin with n and end with s leaving all other letters the same? Thanks |
#5
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replacing
You don't need a wildcard search when there are no variables
Search for ^tMichael^t replace with ^tJohn^t See also http://www.gmayor.com/replace_using_wildcards.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Marc Grant wrote: Doug It works brilliantly - thanks for that. Can this be used to replace tabs in the same way i.e. ^tMichael^t to change to Michael where Michael would be the name that changes "Doug Robbins - Word MVP" wrote: In the EditReplace dialog, click on the More button and check the "Use wildcards" box and then in the Find what control, enter (m)(*)(t) and in the Replace with Control, enter n\2s Then click on Replace all. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Marc Grant" Marc wrote in message ... Is there anyway of replacing certain parts of words using a wildcard for example how do I change all words in a list beginning with m and ending in t to begin with n and end with s leaving all other letters the same? Thanks |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
replacing with highlighting | Microsoft Word Help | |||
Replacing Templates | Microsoft Word Help | |||
Replacing text, instead of replacing, text inserts alongside word | Microsoft Word Help | |||
Replacing normal.dot | Microsoft Word Help | |||
wildcard replacing | Page Layout |