View Single Post
 
Old 03-08-2017, 02:32 PM
Charles Kenyon Charles Kenyon is offline Windows 10 Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,533
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Unfortunately, not. You cannot have a leading space in an AutoCorrect entry. If you try it for the characters without the space, you will get a space followed by a nonbreaking space followed by the characters.

Again, you could use a replace using wildcards to do this. This could be put into a macro. I do not know how to do it but I know several people frequent this forum who do.

If you are going to use replace, religiously, you could set up the AutoCorrect entries which will give you the space followed by the nonbreaking space and then simply replace for that. Such a replace will not require use of wildcards.

Here is such a macro for that replace:

Code:
Sub Macro1()
'
' Macro1 Macro
'
'
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
        .Text = " ^s"
        .Replacement.Text = "^s"
        .Wrap = wdFindContinue
        .Forward = True
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
End Sub
The ^s is for the nonbreaking space.

Last edited by Charles Kenyon; 03-08-2017 at 02:43 PM. Reason: add macro
Reply With Quote