As we write Range(A4) as Cell(1,4).How should I need write Range(A2:AB256) into Cell format?
Thanks, Arup
As we write Range(A4) as Cell(1,4).How should I need write Range(A2:AB256) into Cell format?
Thanks, Arup
Directly, you can't, but if your goal is to access a range of cells by their indexes, you can use the Range-method with two cells as arguments:
Set myRange = mySheet.Range(mySheet.Cells(1, 2), mySheet.Cells(28, 256))
Or you can parse the column letter from the cell address:
Dim columnNumber As Integer
Dim columnLetter As String
columnNumber = 5
columnLetter = Split(Cells(1, columnNumber).Address, "$")(1)