excel VBA 中怎么定义一个数组xx(1 to 100)

2024-12-31 22:43:52
推荐回答(2个)
回答1:

Dim xx(1 To 100) As Integer
For i = 1 To 100
xx(i) = 200 + int(100 * Rnd)
Next

回答2:

Dim xx(1 To 100) As Integer
For i = 1 To 100
xx(i) = 201 + 100 * Rnd
Next