![]() |
|
#4
|
||||
|
||||
|
Quote:
Code:
Sub Demo()
Application.ScreenUpdating = False
With ActiveDocument.Range
.InsertBefore vbCr
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "(^13[!^13]@^t[!^13]@)^t"
.Replacement.Text = "\1 "
.Forward = True
.Wrap = wdFindContinue
.MatchWildcards = True
End With
Do While .Find.Execute = True
.Find.Execute Replace:=wdReplaceAll
Loop
.Characters.First.Text = vbNullString
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
I need a macro to format images and remove tabs. help
|
LuisXVI | Word VBA | 4 | 11-12-2018 03:12 PM |
Macro to delete pages in Word 2007
|
staicumihai | Word VBA | 4 | 11-07-2018 01:14 AM |
Need Word Macro to Delete Text
|
rsrasc | Word VBA | 4 | 04-18-2018 11:32 PM |
| Tabs set along left edge of page; how to delete | ginny | Word | 4 | 03-21-2018 08:07 PM |
Word Macro to find and delete rows that contain adjacent cells containing "."
|
AlexanderJohnWilley | Word VBA | 7 | 11-08-2012 10:15 AM |