I'm trying to run the below code, but I'm not getting any results. In playing with the code, it appears to be because there are no values of "Pending" at this point, but it is likely they will occur. How can I include the value in the filter so those values are captured if/when they are in the data set?
VBA Code:
With mN.UsedRange
.AutoFilter Field:=2, Criteria1:=Array("Approval", "Denial", "Pending")
.AutoFilter Field:=13, Criteria1:=Array("=", "")
End With
mNLR = mN.Range("A" & Rows.Count).End(xlUp).Row
If mNLR > 1 Then mN.Range("M2:M" & mNLR).SpecialCells(xlCellTypeVisible).Value = "Acceptable"
'Clears the filter and resets the Last Row.
mN.AutoFilterMode = False
mNLR = mN.Range("A" & Rows.Count).End(xlUp).Row