Select the range you wish to count in
run this procedure to display a messagebox with the result
:======================================
Sub CountInSelection()
MsgBox Application.WorksheetFunction.CountIf(Selection, "Standard")
End Sub
:======================================
else declare a variable to th result and use as you wish. Let me know
if you need any more help for you use.
http://www.excel-ant.co.uk