Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Non-breaking space automatically after numerals
Can you make Word replace a space with a non-breaking space
automatically after numerals? |
#2
|
|||
|
|||
No. You can, however run a macro to make the change
Sub ChangeSpaceAfterNumber() Selection.HomeKey Unit:=wdStory Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "([0-9])[ ]" .Replacement.Text = "\1^s" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchAllWordForms = False .MatchSoundsLike = False .MatchWildcards = True End With Selection.Find.Execute replace:=wdReplaceAll End Sub See http://www.gmayor.com/installing_macro.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Ulla A wrote: Can you make Word replace a space with a non-breaking space automatically after numerals? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Strange white space after headings | Formatting Long Documents | |||
When I go to correct a word or add a space it automatically delea. | Microsoft Word Help | |||
Can one item of text be automatically replicated in several spots? | Microsoft Word Help | |||
Table automatically breaking | Tables | |||
Replace Single Space with Double Space | New Users |