View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
John[_132_] John[_132_] is offline
external usenet poster
 
Posts: 30
Default CountIF = function not defined ???

thanks... that did it.

Have another problem now. The countif doesn't work with a range I put
together using "union" I took a chance on that.

----
Dim Rows(9) as Range
Set Rows(n) = Union(Cells(n, 1), Cells(n, 3), Cells(n, 5))
----

I'm trying to have a collection or range or array of evey other cell in
a row that i can work with. Is that possible as a range? I tried to read
about collections but just got screwed up.

thanks

John

Gary Keramidas wrote:
try WorksheetFunction.CountIf