I have been messing with this problem for some hours now and obviously I am missing something important. I'm trying to add some blank rows in an Excel Table based on criteria ID.
This my Code, but some somehow it ends up on an infinite loop right after ID 102. I know you have to delete rows from the bottom up but not sure for adding rows.
Sub AddBlnkRow()
Dim Tbl As ListObject, TblID As Range, c As Range
Set Tbl = ActiveSheet.ListObjects("TblState")
Set TblID = Tbl.ListColumns(1).DataBodyRange
For Each c In TblID 'Step -1
If c = 200 Or c = 300 Or c = 400 Then Tbl.ListRows.Add (c.Row - 2)
Next
End Sub
Any help is appreciated
Nick.
