0

Range(A4) を Cell(1,4) と書くと、Range(A2:AB256) を Cell 形式にどのように書き込む必要がありますか?

ありがとう、アラップ

4

1 に答える 1

1

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)
于 2012-12-07T11:02:35.170 に答える