![]() |
#1
|
|||
|
|||
![]()
Search for "^p^p" and replace with "^p" loop this until it no find any one more "^p^p" in the active document.
I have this code: (it's not working, its resulting in freeze/loop/crash word) Dim oRng As Range Set oRng = ActiveDocument.Range With oRng.Find .Wrap = wdFindStop Do While .Execute(FindText:="^p^p",replacewith:="^p") Loop End With
__________________
Backup your original file before doing any modification. |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
sbatson5 | Word | 2 | 04-13-2012 03:49 AM |
Why the "Text boundaries" are not shown till the end of the page while in other file | Jamal NUMAN | Word | 4 | 03-28-2012 07:58 AM |
![]() |
GWBDIRECT | Outlook | 3 | 04-06-2011 11:29 AM |
![]() |
MShroff | Word | 8 | 01-19-2011 08:43 AM |
Replacing / editting text | LisaC | Word | 0 | 02-25-2010 03:40 AM |