![]() |
|
#1
|
||||
|
||||
![]()
Try:
Code:
Sub DeleteEmptyRows() Application.ScreenUpdating = False Dim Tbl As Table, r As Long For Each Tbl In ActiveDocument.Tables With Tbl For r = .Rows.Count To 1 Step -1 If .Rows(r).Cells.Count > 1 Then If Len(.Cell(r, 2).Range.Text) = 2 Then .Rows(r).Delete End If Next End With Next Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formula for deleting empty text boxes | lenzz920 | PowerPoint | 0 | 08-14-2017 01:02 AM |
![]() |
cltay87 | Word VBA | 4 | 02-27-2017 04:23 AM |
Copying specific columns of a table to WORD and deleting rows | ffinley | Word VBA | 5 | 12-07-2015 04:01 PM |
![]() |
Bathroth | Word VBA | 1 | 10-01-2014 01:40 PM |
Deleting empty lines | lostsoul62 | Word | 5 | 04-16-2012 04:55 AM |