I am trying to prevent a subroutine from running if the column "L" it's working with doesn't have any value "Yes"
If Range("L2:L").WorksheetFunction.CountIf(col, "Yes") > 0 Then
Call DeleteSubparts
End If
There's a problem with my if function and I'm not sure what am I writing wrong. Could someone, please, help me?
col? Where do you define it? Have you looked at the official documentation for theWorksheetFunctionmethod or theCountIfmethod?