![]() |
#12
|
||||
|
||||
![]() Quote:
Code:
Dim Tbl As Table, r As Long For Each Tbl In ActiveDocument.Tables With Tbl If Len(.Range.Text) = .Range.Cells.Count * 2 + .Rows.Count * 2 Then .Delete: Set Tbl = Nothing Else For r = .Rows.Count To 1 Step -1 With .Rows(r) If Len(.Range.Text) = .Cells.Count * 2 + 2 Then .Delete End If End With Next End If End With MsgBox Tbl Is Nothing Next
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
set row object variable error | CLoos | Excel Programming | 6 | 03-10-2017 04:48 PM |
![]() |
zlodeh | Excel Programming | 1 | 02-24-2016 01:58 AM |
![]() |
Doug Needham | Excel Programming | 4 | 01-12-2015 10:54 PM |
![]() |
simstem | Word | 1 | 10-06-2012 08:44 PM |
XML parsing & Object variable not set (Error 91) | tinfanide | Excel Programming | 0 | 12-29-2011 08:43 AM |