![]() |
#2
|
||||
|
||||
![]()
The following works
Code:
Sub ParasDeleteMultiSelection() Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "^13{2,}" .Replacement.Text = "^p" .Forward = True .Wrap = wdFindStop .Format = False .MatchWildcards = True End With Selection.Find.Execute Replace:=wdReplaceAll End Sub Sub ParasInsertBlanksSelection() Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "[^13]" .Replacement.Text = "^p^p" .Forward = True .Wrap = wdFindStop .Format = False .MatchWildcards = True End With Selection.Find.Execute Replace:=wdReplaceAll End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is this possible.. I am stumped! | gcross4 | Excel Programming | 0 | 01-13-2015 03:02 PM |
![]() |
Ulodesk | Word VBA | 6 | 07-02-2012 09:23 AM |
Stumped on Grouping with Custom Fields... | ViperMan | Project | 1 | 06-22-2011 01:31 AM |
![]() |
Ulodesk | Word | 2 | 01-03-2011 11:43 AM |
Stumped With Mail Merge Formula | JennEx | Mail Merge | 0 | 05-28-2010 07:44 AM |