![]() |
|
#2
|
|||
|
|||
|
Code:
Sub ScratchMacro() 'A basic Word macro coded by Greg Maxey, http://gregmaxey.com/word_tips.html, 11/20/2017 Dim oRng As Range Set oRng = ActiveDocument.Range oRng.InsertBefore vbCr With oRng.Find .Text = "([^13^11])(*): " .MatchWildcards = True .Replacement.Text = "\1" .Execute Replace:=wdReplaceAll End With Set oRng = ActiveDocument.Range With oRng.Find .Text = " -*(^^)" .MatchWildcards = True .Replacement.Text = "\1" .Execute Replace:=wdReplaceAll End With ActiveDocument.Paragraphs(1).Range.Delete lbl_Exit: Exit Sub End Sub |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| finding 'struck-through' text | joebloggs | Word | 1 | 08-16-2017 10:27 PM |
Inserting Symbols and Keeping Text Aligned- THANK YOU!
|
StuartS | Word | 1 | 07-21-2016 10:00 PM |
Finding the nth Blank Value in a Row of Text
|
ljg713 | Excel | 7 | 01-12-2016 07:49 AM |
symbols beside text like in onenote?
|
symbolgirl | Word | 3 | 04-20-2012 01:44 AM |
text changes to symbols
|
EMAW 2010 | Word | 4 | 03-25-2010 12:32 PM |