Thread: Counting Cells
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Mike[_31_] Mike[_31_] is offline
external usenet poster
 
Posts: 38
Default Counting Cells

One command, no looping required.

Application.WorksheetFunction.CountIf(Range(Cells( 42, 2),
Cells(77, 2)),"0")


-----Original Message-----
Hi
What code should I write in order to count only the

positive value of a
pre-defined range: Range(Cells(42, 2), Cells(77, 2))

Thanks
Pedro


.