![]() |
#6
|
|||
|
|||
![]()
Yacov, the following code will also delete empty paragraps:
Code:
Sub Spaces() With selection.range.Find .text = Chr(13) & "{2,}" .Replacement.text = Chr(13) .Forward = True .Wrap = wdFindStop .Format = False .MatchWildcards = True .MatchSoundsLike = False .MatchAllWordForms = False .Execute Replace:=wdReplaceAll .text = " {1,}([+-]) {1,}" .Replacement.text = "\1" .Execute Replace:=wdReplaceAll End With End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Removing extra space between word | BillMcEnaney | Word | 9 | 02-16-2023 11:03 PM |
How to delete extra space (between lines)? | Gerald Wilhelm | Word | 15 | 08-26-2020 04:08 AM |
![]() |
jaj42305 | Mail Merge | 3 | 04-21-2016 03:33 PM |
extra space before equation | Nice2007 | Word | 1 | 04-27-2012 05:05 PM |
![]() |
lucadelcarlo | Word | 1 | 04-23-2011 04:05 PM |