|
Private Sub CommandButton83_Click()
Dim myr As Variant
Dim cc As Variant
Dim ss As Variant
Dim i As Long
Dim n As Long
Dim r As Long
With Range("a1").CurrentRegion
myr = .Value
.clear
End With
For i = 1 To UBound(myr, 1) Step 4
r = i + 3
cc = Range(myr(i, 1), myr(r, 1))
ss = WorksheetFunction.Transpose(cc) '配列の入れ替えたものをssに格納
n = n + 1
Cells(n, 1).rezise(UBound(ss, 1), UBound(ss, 2)) = ss
Next i
End Sub
ここでエラーが出ます。
cc = Range(myr(i, 1), myr(r, 1)) myrの4つの範囲ずつ行列を入れ替えたのですが・・・・・・
結構勉強したのですが。これ以上わかりません。なぜ?
|
|