In Excel VBA, I am trying to loop through an Excel Table and then update another column in that row. I wish to refer to the other column by its name rather than an offset/number in case the layout changes. Is that possible?
Dim rw As ListRow
Dim cl As Range
For Each rw In ActiveSheet.ListObjects("MasterData").ListRows
'Pseudo code:
if (rw[Notes] = "Test") then DO SOMETHING 'In this line I'd like to refer to the column called "Notes" but not sure how to do it.
Next rw