View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
cyberdude cyberdude is offline
external usenet poster
 
Posts: 12
Default How to check if the cell contains number 1 by moving down thecolumns?

Hi,

Suppose the cursor is on a certain row (say row 3 or 40), I want to
check if each cell from column B to column AF contains the number 1.
If it does, the counter i is incremented by 1. I want to do it by a
for next loop such that the column number is a variable. Can it be
done this way? Thank you.

Mike