J
Joe User
I have the following variables:
Const cellName As String = "B2"
Const nRow As Long = 5
Const nCol As Long = 10
I want to reference the rectangular range starting from cellName through row
cellName+nRow and column cellName+nCol; that is, B2:K7 for the values above.
I've come up with the following:
Range(cellName, Range(cellName).Cells(nRow, nCol))
Seems tedious. Is that the best I can do?
Const cellName As String = "B2"
Const nRow As Long = 5
Const nCol As Long = 10
I want to reference the rectangular range starting from cellName through row
cellName+nRow and column cellName+nCol; that is, B2:K7 for the values above.
I've come up with the following:
Range(cellName, Range(cellName).Cells(nRow, nCol))
Seems tedious. Is that the best I can do?