View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default loop command in Macro

Rasoul,

You can certainly loop in VBA. See the VBA help for Do While, Do
Until, and For Next loops.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Rasoul Khoshravan Azar" wrote in
message ...
In Classical programming languages like Fortran and Basic we

have a command
called: "Loop or Go to" which is used to run a series of

commands in
recurrence until a limit or satisfying a criteria.
In Macro I want to do some commands on cells in a raw and

continue same
commands for second raw until I reach to last row. I think I am

looking for
some sort of equivalent of Loop in Macro.

Could you please tell what it should be? or if the philosophy

of doing such
a recurring commands differ in Macro and I am thinking in a

rong way in
Macro
TIA, Rasoul