Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Delete space
Hello from Steved
If I have a character followed by a space then an = how do i delete the space in a macro. Thankyou. |
#2
|
|||
|
|||
Just use EditReplace.
-- 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 "Steved" wrote in message ... Hello from Steved If I have a character followed by a space then an = how do i delete the space in a macro. Thankyou. |
#3
|
|||
|
|||
See 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 Steved wrote: Hello from Steved If I have a character followed by a space then an = how do i delete the space in a macro. Thankyou. |
#4
|
|||
|
|||
If you want to replace the space between some character and the = sign, you
can just replace a space followed by = with =. If you only want to remove the space between some specific character X and the = sign, check "Match wildcards", then: Find what: (X) (=) Replace with: \1\2 X would be your character, and note the space between (X) and (=). Stuff in (brackets) can be re-used: \1 inserts the first (bracketed expression), \2 the second, and so on. If you have a whole list of characters X, Y, Z, and want to remove the space between any of them and the =, use ([XYZ]) instead of (X). Greetings, Klaus "Graham Mayor" wrote: See 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 Steved wrote: Hello from Steved If I have a character followed by a space then an = how do i delete the space in a macro. Thankyou. |
#5
|
|||
|
|||
Thankyou all very much.
"Klaus Linke" wrote: If you want to replace the space between some character and the = sign, you can just replace a space followed by = with =. If you only want to remove the space between some specific character X and the = sign, check "Match wildcards", then: Find what: (X) (=) Replace with: \1\2 X would be your character, and note the space between (X) and (=). Stuff in (brackets) can be re-used: \1 inserts the first (bracketed expression), \2 the second, and so on. If you have a whole list of characters X, Y, Z, and want to remove the space between any of them and the =, use ([XYZ]) instead of (X). Greetings, Klaus "Graham Mayor" wrote: See 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 Steved wrote: Hello from Steved If I have a character followed by a space then an = how do i delete the space in a macro. Thankyou. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to delete a 3 dot extension and why? | New Users | |||
How to delete a line created by equal signs? It won't delete from | Microsoft Word Help | |||
How do I stop Word from asking Delete Block? | Microsoft Word Help | |||
Why did "delete" key discontinue to delete a selected word, line . | Microsoft Word Help | |||
Replace Single Space with Double Space | New Users |