View Single Post
 
Old 03-31-2018, 05:08 AM
eduzs eduzs is offline Windows 10 Office 2010 32bit
Expert
 
Join Date: May 2017
Posts: 262
eduzs is on a distinguished road
Default

This works for me in my test, delete all tables in the activedocument with only empty cells at all:

Code:
Sub Test()

Dim oTbl As Table

For Each oTbl In ActiveDocument.Tables
    If Len(Replace(Replace(oTbl.Range.Text, Chr(7), ""), Chr(13), "")) = 0 Then oTbl.Delete
Next

End Sub
Backup original files before test, test before use, use at your own.
__________________
Backup your original file before doing any modification.
Reply With Quote