View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Shani Shani is offline
external usenet poster
 
Posts: 33
Default Need VBA code to dtermine how many rows have data in them

I need to determine how many rows contain data so that i know when to
stop a loop.

Also is there an or statement in VBA?

for example

If Cells(Rowx, Coly) Like "*cats*" or Cells(Rowx, Coly) Like "*dogs*"
The
....

I am new to VBA and truly appreciate your help.