|
maxRow = Split(Split(Responsestr, "maxRow"":")(1), ",")(0)
maxCol = Split(Split(Responsestr, "maxCol"":")(1), ",")(0)
Responsestr = """0"":" & Split(Split(Responsestr, "],{""0"":")(1), "},{")(0)
Thetable = Split(Responsestr, "},")
For i = 0 To UBound(Thetable)
If InStr(Thetable(i), """2"":[") Then
data_dic(Val(Replace(Split(Thetable(i), ":")(0), """", ""))) = Replace(Split(Split(Split(Thetable(i), """2"":[")(1), "],")(0), ",")(1), """", "")
End If
Next
For i = 1 To maxRow
For j = 1 To maxCol
If data_dic.exists((i - 1) * maxCol + j - 1) Then
Cells(i, j).Value = data_dic((i - 1) * maxCol + j - 1)
End If
Next
Next
运行提示下标越界
|
|