Find bottom of Excel worksheet in VBA

后端 未结 6 1813
深忆病人
深忆病人 2021-01-19 01:47

I\'d like to select to the bottom of the worksheet, but not below what is used/stored. I might have 10,000 rows, but I certainly don\'t have 65,536. I won\'t know ahead of

6条回答
  •  一个人的身影
    2021-01-19 02:27

    I've used this previously

    'This finds the last row in thr worksheet
    LR = Cells(Rows.Count, 18).End(xlUp).Row
    Range(Cells(LR, 1), Cells(LR, 35)).Select
    

提交回复
热议问题