Reply
 
Thread Tools Display Modes
  #1   Report Post  
Ulla A
 
Posts: n/a
Default Non-breaking space automatically after numerals

Can you make Word replace a space with a non-breaking space
automatically after numerals?
  #2   Report Post  
Graham Mayor
 
Posts: n/a
Default

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

Posting Rules

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange white space after headings Regina Formatting Long Documents 2 January 31st 05 11:04 PM
When I go to correct a word or add a space it automatically delea. nicolemjackson11 Microsoft Word Help 2 January 24th 05 09:20 PM
Can one item of text be automatically replicated in several spots? Chris Microsoft Word Help 1 January 20th 05 03:28 PM
Table automatically breaking yamie Tables 1 January 6th 05 10:15 PM
Replace Single Space with Double Space John R. Baker New Users 3 December 11th 04 05:15 AM


All times are GMT +1. The time now is 10:02 PM.

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"