Accepted answer
-
Viorel 118.2K Reputation points
2022-09-14T19:47:13.123+00:00 Try something like this:
Dim ws As Worksheet Set ws = Sheets("Doc") Dim t As ListObject Set t = ws.ListObjects("A") If t.DataBodyRange.Rows.Count < 2 Then t.DataBodyRange.ClearContents End If