|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Sub Check()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
arr = Range("N1:AB" & Cells(Rows.Count, 14).End(xlUp).Row)
For J = 2 To UBound(arr)
If IsError(arr(J, 1)) Then
arr(J, 15) = arr(J, 15) & " NoRegister"
End If
If Not IsError(arr(J, 4)) Then
arr(J, 15) = arr(J, 15) & arr(J, 4)
End If
If arr(J, 8) = "0" Then
arr(J, 15) = arr(J, 15) & " No InvoiceNo#"
End If
If arr(J, 9) = "0" Then
arr(J, 15) = arr(J, 15) & " No CoO"
End If
Next
Range("N1").Resize(UBound(arr), UBound(arr, 2)) = arr
MsgBox "Done"
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
|
评分
-
1
查看全部评分
-
|