Thread: Syntax error.
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Syntax error.

It loops through the cells in the specified range one at a time and performs
the code contained within the loop structure against each cell.

--
Regards,
Tom Ogilvy

"David McNally" wrote in message
...
how does the for each cell in range synax work? I have the
following
For Each Cell In Range("I3:I9")
If Cell.Value = "" Then
'code
Next cell
which is saying that cell is empty? thanks so much