View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Arvi Laanemets Arvi Laanemets is offline
external usenet poster
 
Posts: 99
Default Limit the Loop to 500 Rows

Hi

For i=1 To 500
varValue=ActiveSheet.Range("A" & i).Value
Next i


Arvi Laanemets


"SteveF" wrote in message
...
I have a macro that runs well down a column but I need to define the
Do Until
statement to stop it at row 500 and am stumped on how to do this.
Please help with this simple request. Thanks
Steve