View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
[email protected] peterfarge@hotmail.com is offline
external usenet poster
 
Posts: 32
Default count with a range

Hello John,

you can make a for each loop und test if the value is y or n.

For each vItem in myrng
if vItem = "y" then count = count +1
next vItem