If Ν <> "L" And Ν <> "P" And Ν <> "T" And Ν <> "Q" And Ν <> "I" Then
arr(i, 1) = "A"
Else
arr(i, 1) = Rng.Value
End If
Next
[d2].Resize(UBound(arr)) = arr
End Sub
複製代碼
作者: 准提部林 時間: 2015-10-12 11:38
Sub AA1012_1()
Dim Arr, i&
With Range([D2], Cells(Rows.Count, "D").End(xlUp))
Arr = .Value
For i = 1 To .Count
If InStr("LPTQI", Arr(i, 1)) = 0 Then Arr(i, 1) = "A"
Next i
.Value = Arr
End With
End Sub作者: starry1314 時間: 2015-10-13 13:09