Refer to Excel cell in Table by header name and row number

后端 未结 7 1595
孤独总比滥情好
孤独总比滥情好 2020-12-23 14:58

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?

7条回答
  •  忘掉有多难
    2020-12-23 15:17

    Much simpler, and dynamic:

    ThisWorkbook.Worksheets("WorkSheet_Name").Range("Table_Name").Rows(Table_row_number).Select
    

提交回复
热议问题