What does the Excel range.Rows property really do?

前端 未结 9 1836
故里飘歌
故里飘歌 2021-01-30 16:21

OK, I am finishing up an add-on project for a legacy Excel-VBA application, and I have once again run up against the conundrum of the mysterious range.Rows (?) and

9条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 16:50

    It's perhaps a bit of a kludge, but the following code does what you seem to want to do:

    Set rng = wks.Range(wks.Rows(iStartRow), wks.Rows(iEndRow)).Rows
    

提交回复
热议问题