What does the Excel range.Rows property really do?

前端 未结 9 1922
故里飘歌
故里飘歌 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:35

    There is another way, take this as example

    Dim sr As String    
    sr = "6:10"
    Rows(sr).Select
    

    All you need to do is to convert your variables iStartRow, iEndRow to a string.

提交回复
热议问题