Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 03-08-2017, 02:32 PM
Charles Kenyon Charles Kenyon is offline Autocorrect numbers followed by any string to have non-breaking space Windows 10 Autocorrect numbers followed by any string to have non-breaking space 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Autocorrect numbers followed by C to °C? seanspotatobusiness Word 8 07-09-2019 02:16 PM
Autocorrect numbers followed by any string to have non-breaking space autocorrect double space to single space frankjake Word 8 09-21-2018 05:44 PM
Autocorrect numbers followed by any string to have non-breaking space Non-breaking space and similar characters gpr Word 2 07-10-2015 06:44 AM
Autocorrect numbers followed by any string to have non-breaking space macro to find a character and insert space so autocorrect will expand 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

Other Forums: Access Forums

All times are GMT -7. The time now is 10:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft