I\'m trying to refer to a cell in an excel table by using the table header name and the row number using VBA.
How can I do this?
It is as simple as this. If you call by the name of the column, then the column index will be 1 for that range so:
msgbox ActiveSheet.ListObjects(1).ListColumns("header4").DataBodyRange(2,1).value