For Each v In .Range(.[Q6], .[Q65536].End(xlUp))
If Len(Trim(v.Text)) < 6 Then
.Cells(v.Row, "AN") = IIf(Left(Trim(v.Text), 2) < 6, "X", "Y")
Else
K = CDate([v]) - Int(CDate([v]))
.Cells(v.Row, "AN") = IIf(K < 0.25, "X", "Y")
End If
Next v作者: c_c_lai 時間: 2013-1-1 10:04