Sub X()
Dim MyArrA(1 To 2)
Dim MyArrB(1 To 2)
Dim MyArrC(1 To 2)
Dim MyArrD(1 To 2)
Dim MyArrE(1 To 2)
Dim MyArrF(1 To 2)
Dim MyArrG(1 To 2)
MyArrA(1) = "A1"
MyArrA(2) = "A2"
MyArrB(1) = "B1"
MyArrB(2) = "B2"
MyArrC(1) = "C1"
MyArrC(2) = "C2"
MyArrD(1) = "D1"
MyArrD(2) = "D2"
MyArrE(1) = "E1"
MyArrE(2) = "E2"
MyArrF(1) = "F1"
MyArrF(2) = "F2"
MyArrG(1) = "G1"
MyArrG(2) = "G2"
For a = 1 To 2
For b = 1 To 2
For c = 1 To 2
For d = 1 To 2
For e = 1 To 2
For f = 1 To 2
For g = 1 To 2
n = n + 1
Cells(n, 1) = MyArrA(a) & "," & MyArrB(b) & "," & MyArrC(c) & "," & MyArrD(d) & "," & MyArrE(e) & "," & MyArrF(f) & "," & MyArrG(g)
Next g
Next f
Next e
Next d
Next c
Next b
Next a
End Sub 作者: demon2004 时间: 2007-1-25 07:21
谢谢楼上,我看看作者: demon2004 时间: 2007-1-25 07:23
不是两个的组合,而是7个,如A1,B1,C2,D1,E1,F2,G1这样作者: cola 时间: 2007-1-25 18:35