Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Loops
Hi, I know how to use a For Next Loop but I'm having a problem with the
Do While and the Do Until loops. I want the macro to execute until the cell on the left is blank. Can someone help? Thanks Chuck |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Loops
Do Until Activecell.Offset(0,-1).Value = ""
'do some stuff Activecell.Offset(1,0).Select Loop or Do While Activecell.Offset(0,-1).Value < "" 'do some stuff Activecell.Offset(1,0).Select Loop It is not really necessary to do the selecting, but that is another story. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) wrote in message ups.com... Hi, I know how to use a For Next Loop but I'm having a problem with the Do While and the Do Until loops. I want the macro to execute until the cell on the left is blank. Can someone help? Thanks Chuck |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Loops
Bob Phillips wrote: Do Until Activecell.Offset(0,-1).Value = "" 'do some stuff Activecell.Offset(1,0).Select Loop or Do While Activecell.Offset(0,-1).Value < "" 'do some stuff Activecell.Offset(1,0).Select Loop It is not really necessary to do the selecting, but that is another story. -- HTH Bob Phillips Bob, Thanks a lot it worked great Chuck (replace somewhere in email address with gmail if mailing direct) wrote in message ups.com... Hi, I know how to use a For Next Loop but I'm having a problem with the Do While and the Do Until loops. I want the macro to execute until the cell on the left is blank. Can someone help? Thanks Chuck |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
if function in excel should 12 loops | Excel Discussion (Misc queries) | |||
Loops... | Excel Discussion (Misc queries) | |||
do loops | Excel Worksheet Functions | |||
For next loops | Excel Discussion (Misc queries) | |||
Max limit of 7 nested loops | Excel Worksheet Functions |