Hi,
I am getting error 1004: Unable to get countif property of the worksheetfunction class?
Dim rngCard As Range
Set rngCard = ActiveCell
Dim rngPlus As Range
Dim cntPlus As Long
Set rngPlus = Range("BN5:CL5, BN7:CL7, BN9:CL9, BN11:CL11")
cntPlus = Application.WorksheetFunction.CountIf(rngPlus, "+")
I assumed this will work because before I had:
Dim rngCard As Range
Set rngCard = ActiveCell
Dim rngPlus As Range
Dim cntPlus As Long
Set rngPlus = Range("BN5:CL5, BN7:CL7, BN9:CL9, BN11:CL11")
cntPlus = Application.WorksheetFunction.CountA(rngPlus)
However, it does not work. How do I get countif to work? Please help.
Bookmarks