I have a worksheet with two tables on it located starting in column B. In Column A I have a COUNTA formula that is tied to a delete blank rows button. My code works great to delete the table row but i need it to delete the entire worksheet row so that it also deletes the formula in column A instead of it continuously shifting down as rows are added or deleted.
The trouble is that I have two tables on the sheet so I need the deletion row action to refer only to the Local_1 table and the loop to stop when it reaches the end of that table.
Any suggestions on how to delete the entire row and not just the table row?
Dim i As Long
Application.ScreenUpdating = False
ActiveSheet.Unprotect Password:=pswStr
Rows.EntireRow.Hidden = False
With ActiveSheet.ListObjects("Local_1")
For i = .ListRows.Count To 1 Step -1
If .ListRows(i).Range.Cells(0) <= 0 Then
.ListRows(i).Delete
End If
Next i
End With