|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
偶也是新人,试一下错了别笑话:
Sub xunhuan()
Dim arr(1 To 252, 1 To 5), i1, i2, i3, i4, i5, k
For i1 = 0 To 5
For i2 = i1 + 1 To 6
For i3 = i2 + 1 To 7
For i4 = i3 + 1 To 8
For i5 = i4 + 1 To 9
n = n + 1
arr(n, 1) = i1
arr(n, 2) = i2
arr(n, 3) = i3
arr(n, 4) = i4
arr(n, 5) = i5
Next
Next
Next
Next
Next
k = Range("b23").Value
Range("H26") = arr(k, 1)
Range("H27") = arr(k, 2)
Range("H28") = arr(k, 3)
Range("H29") = arr(k, 4)
Range("H30") = arr(k, 5)
End Sub |
评分
-
1
查看全部评分
-
|