Hi folks,
Hope all are well this day
I have been trying to solve this peculiar space problem.
Through out the document there are some characters a comma followed by X
Example
'X - comma X
I am trying to adjust the space between this and the next word, I don’t know what the next word is
Example
'X the cat sat on the mat (7 spaces)
'X Cup of coffee (5 Spaces)
I want to make them unifrom so there is only 1 space between them
'X Love Food(1 Space)
I have looked all over and, well I'm not sure what to do
I found this
https://cybertext.wordpress.com/2012...between-words/
And I did this
Sub SpaceBetweenWords() Dim oRng As Range Set oRng = ActiveDocument.Range With oRng.Find .Text = "'X" Do While .Execute(Forward:=True) = True 'oRng.Characters.First = "'X" 'oRng.Characters.Last oRng.Collapse wdCollapseEnd Loop End With End Sub
Can I do a search and replace with wildcards or regexular expressions?
Thank you for any tips and advice