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
range.Rows
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.
iStartRow
iEndRow