![]() |
#2
|
||||
|
||||
![]()
There have been some issues lately with MS updates to Office 365. nevertheless, that's a horribly inefficient way to go about the task! Try:
Code:
Sub Demo() Application.ScreenUpdating = False With ActiveDocument.Range With .Find .ClearFormatting .Replacement.ClearFormatting .Text = "[ ]{1,}^13" .Replacement.Text = "^p" .Forward = True .Format = False .Wrap = wdFindContinue .MatchWildcards = True .Execute Replace:=wdReplaceAll End With End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
DanNatCorning | Word VBA | 1 | 04-29-2016 10:47 PM |
Find and Delete Rows based on a range | damaniam | Excel Programming | 2 | 03-12-2014 06:06 AM |
![]() |
VBA_Elfe | Word VBA | 3 | 04-05-2013 05:05 AM |
![]() |
tinfanide | Word VBA | 3 | 04-27-2012 09:48 AM |
Can't delete range - error 5904 | expatriate | Word VBA | 1 | 06-03-2011 12:12 AM |