A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Jeovany - thanks. That works, of course. I discovered that iRow.row has the row number.
I used that information to revise the code as follows:
Dim TA_Table As ListObject
Set TA_Table = Sheets("Table assignments").ListObjects("Table_assignments")
For Each iRow In TA_Table.ListColumns("Mentor Name").DataBodyRange.Rows
If iRow.Value2 <> "" Then
RT_Table.ListRows.Add
RT_Table.DataBodyRange(iRow.Row, 1).Value2 = TA_Table.DataBodyRange(iRow.Row, 1).Value2
End If
Next iRow
Which gives no errors. But it skips the first row, since iRow.Row starts with 2.
So I presume it is 2 for the first row in DataBodyRange. If I subtract 1, it works fine.
Thanks again.