![]() |
#5
|
|||
|
|||
![]()
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 Last edited by Charles Kenyon; 03-08-2017 at 02:43 PM. Reason: add macro |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Autocorrect numbers followed by C to °C? | seanspotatobusiness | Word | 8 | 07-09-2019 02:16 PM |
![]() |
frankjake | Word | 8 | 09-21-2018 05:44 PM |
![]() |
gpr | Word | 2 | 07-10-2015 06:44 AM |
![]() |
redzan | Word VBA | 3 | 05-22-2014 04:22 PM |
How to extract only numbers from a STRING? | Learner7 | Excel | 3 | 07-02-2013 06:25 AM |