View Single Post
 
Old 06-28-2017, 10:54 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,469
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Word's Find/Replace routine will not find empty paragraphs before a table. You need a different approach for that. For example:
Code:
Sub Demo()
Dim Tbl As Table, Rng As Range
On Error Resume Next
For Each Tbl In ActiveDocument.Tables
  Set Rng = Tbl.Range.Characters.First.Previous
  Rng.MoveStartWhile vbCr, -1
  Rng.Delete
Next
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote