Sub TEST()
Dim xD, T, TT, xR As Range
Set xD = CreateObject("Scripting.Dictionary")
For Each xR In Range([B2], [B65536].End(xlUp))
T = xR(1, 2): If T <> "" Then xD(T) = xD(T) & "|" & xR
Next
Set xR = [E4]: xR.Resize(1, 100) = ""
For Each T In Array("V", "O", "X")
If xD(T) = "" Then GoTo 101
TT = Split(Mid(xD(T), 2), "|")
xR.Resize(1, UBound(TT) + 1) = TT
Set xR = xR(1, UBound(TT) + 4)
101: Next
End Sub作者: hcm19522 時間: 2016-1-5 14:32
回復 6#074063
Sub test()
Dim I As Integer, J As Integer
For I = 5 To 33
Cells(4, I).Resize(3, 1).Select
With Selection
.Merge
For J = 1 To 4
.Borders(J).LineStyle = xlNone
Next
End With
Next
End Sub作者: 074063 時間: 2016-1-6 00:03