![]() |
|
#15
|
||||
|
||||
|
To standardise on one space
Code:
Sub SpaceBallsOneSpace()
Dim aRng As Range, aSty As Style
Set aRng = ActiveDocument.Content
With aRng.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "^g"
.Replacement.Text = "^& "
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchWildcards = False
.Execute Replace:=wdReplaceAll
.Text = "[ ]{2,}"
.Replacement.Text = " "
.MatchWildcards = True
.Execute Replace:=wdReplaceAll
End With
End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Opening all selected images, resizing images and placing them into a table.
|
John Livewire | Word VBA | 1 | 09-15-2017 11:24 PM |
How do I make all text in word equally lined?
|
MRnightmuffin | Word | 2 | 08-21-2017 03:21 PM |
Distribute shapes equally
|
Losey | Visio | 2 | 11-18-2014 01:29 PM |
| Equally allocate/assign across resouces | chconnors | Project | 1 | 06-01-2011 03:27 AM |
Mail Mege Images - Path Correct but Images Repeated
|
Sonia Sosa | Mail Merge | 8 | 04-22-2011 03:05 PM |