I am trying to iterate through a ListObject
and, depending on whether a row is visible or not, select certain columns of that row to copy and paste into another sheet. I currently have the following code:
Set tbl = ActiveSheet.ListObjects("MasterBudget")
For r = 1 To tbl.ListRows.Count
If tbl.ListRows(r).Range.RowHeight <> 0 Then 'not hidden/filtered
tbl.ListColumns("Item description").DataBodyRange(r).Select
Range("[@[Item description]:[Unit 3]]").Select '<-- problem line
End If
Next r
It does get to the right item, but I for some reason can't figure out how to select that particular set of columns (from item description through unit 3). What am I doing wrong?
Any suggestions highly appreciated.