Sub 填色()
Dim xR As Range, T, N%, C
C = Array(36, 35) '兩種顏色輪換
For Each xR In Range([A4], [A65536].End(xlUp))
If xR.Row < 4 Then Exit Sub '沒有資料,跳出
If xR <> T Then N = 1 - N: T = xR
xR.Resize(1, 13).Interior.ColorIndex = C(N)
Next
End Sub作者: owen06 時間: 2015-10-28 14:52