Find bottom of Excel worksheet in VBA

后端 未结 6 1726
深忆病人
深忆病人 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条回答
  •  梦毁少年i
    2021-01-19 02:10

    The simplest way is to start at the bottom and work up to find the last row that contains something:
    Range("a65536").end(xlup).row

提交回复
热议问题