Sub 取消著色()
Dim Sh As Worksheet, c As Range
Set Sh = Workbooks("取消著色.xlsx").Sheets("2" & "")
Sh.Activate
xRow = Cells(Cells.Rows.Count, "B").End(xlUp).Row '料號
Set xRng = Range("J4:Y" & xRow)
For Each c In xRng
If c > 0 Then
c.Interior.ColorIndex = xlNone '取消著色
End If
Next
End Sub作者: PJChen 時間: 2020-6-14 19:57