Find bottom of Excel worksheet in VBA

后端 未结 6 1737
深忆病人
深忆病人 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:07

    That's elementary:

    Selection.End(xlDown).Select
    

    (Found this out by pressing ctrl + end while recording a macro.)

提交回复
热议问题