![]() |
|
#2
|
||||
|
||||
|
Try:
Code:
Sub IfSpaceFound()
With Selection.Characters.First
If .Start = ActiveDocument.Range.Start Then
.InsertBefore " "
.MoveStart wdCharacter, 1
ElseIf .Previous <> " " Then
.InsertBefore " "
.MoveStart wdCharacter, 1
End If
End With
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| the character "v" when typed acts like ctrl-v. | jim redfield | Word | 1 | 09-22-2012 05:19 AM |
| Wierd symbols inplace of "space", "indentation" etc | aka.bhagvanji | Word | 5 | 02-16-2012 11:50 AM |
| Conditional formatting - "From" - Why does it recognise only names and not emails | ghumdinger | Outlook | 0 | 09-18-2011 01:28 AM |
The heading doesn't "obey" the "before" space! why?
|
Jamal NUMAN | Word | 1 | 07-06-2011 04:25 AM |