0
您好我收到錯誤作爲下標超出範圍,但我無法確定爲什麼。我是VBA新手,請幫助我。提前感謝。下標超出範圍,VBA
您好我收到錯誤作爲下標超出範圍,但我無法確定爲什麼。我是VBA新手,請幫助我。提前感謝。下標超出範圍,VBA
變化t = 0
到t = 1
因爲arr
陣列的dimmension從1
(ReDim arr(1 To UBound(aryValues))
)開始:
t = 1
For i = LBound(aryValues) + 1 To UBound(aryValues)
For Each v In dict.Keys
If v = aryMembers(i) And c = 0 Then
arr(t) = aryValues(i)
c = c + 1
t = t + 1
End If
Next
c = 0
Next
謝謝你的作品。 – user3227450