|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- Sub 按钮1_Click()
- Application.ScreenUpdating = False
- Dim crr(1 To 40, 1 To 1)
- Set d = CreateObject("scripting.dictionary")
- arr = Range([e1], Cells(Rows.Count, "e").End(3))
- For j = 2 To UBound(arr)
- If Len(arr(j, 1)) > 10 Then
- brr = Split(arr(j, 1), " ")
- x = 1
- Erase crr
- d.RemoveAll
- For i = 0 To UBound(brr)
- d(brr(i) * 1) = i
- For l = 0 To UBound(brr)
- If i <> l Then
- crr(x, 1) = Format(brr(i), "00") & " " & Format(brr(l), "00")
- x = x + 1
- End If
- Next l
- Next i
- y = 0
- For i = 1 To 10
- If Not d.exists(i) Then
- brr(y) = i
- y = y + 1
- End If
- Next i
- For i = 0 To UBound(brr)
- d(brr(i)) = i
- For l = 0 To UBound(brr)
- If i <> l Then
- crr(x, 1) = Format(brr(i), "00") & " " & Format(brr(l), "00")
- x = x + 1
- End If
- Next l
- Next i
- Cells(2, j + 40).Resize(40) = crr
- End If
- Next j
- Application.ScreenUpdating = True
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|