I am trying to find and return the number of times the word “overflow” appears in an active range in Excel.How do I search in the active selected range and not a predefined range like A1:A50
Dim MyCount As Long
MyCount = Application.Countif(Range("A1:A50"),"Oveflow")
MsgBox "I have completed my search and found " & MyCount & " cell(s)."
Is it possible to perform countif on active selected range ?