- 帖子
- 1572
- 主題
- 16
- 精華
- 2
- 積分
- 1521
- 點名
- 0
- 作業系統
- xp
- 軟體版本
- office 2003
- 閱讀權限
- 150
- 性別
- 男
- 註冊時間
- 2010-5-1
- 最後登錄
- 2016-1-13

|
- Sub yy()
- Dim d As Object, i%, r%, w$, s$, t, c As Range
- [a:c] = ""
- Set d = CreateObject("scripting.dictionary")
- For i = 6 To 10 Step 2
- For Each c In Cells(1, i).Resize(6, 2).SpecialCells(2)
- w = c.Value
- d(w) = d(w) + 1
- Next
- For Each t In d
- If d(t) = 1 Then d.Remove (t)
- Next
- If d.Count > 0 Then
- r = r + 1
- Cells(1, r).Resize(d.Count, 1) = Application.Transpose(d.keys)
- If s = "" Then s = Join(d.keys, "、") Else s = s & "、" & Join(d.keys, "、")
- End If
- d.RemoveAll
- Next
- [a7] = s
- End Sub
複製代碼 |
|