I'm trying to clear Table "A" - based on number of rows present in Table "A"
For example if there is less than 2 rows present in Table "A" then clear all contents in Table "A"
with sheets("DOC").ListObjects("A")
if A.Rows.Count > 2 Then
A.databodyrange.ClearContents
ENDif
ENDwith
I know for sure this wrong because it keeps giving me an error. Wondering how to fix this or if there is a better way.
any help would be apreciated.