Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i want to write a loop that will run until it reaches cell E333, starting at
E1. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You should write a macro resembling this:
Sub myMacro () set myRange = Range("E1:E333") For Each c in myRange.Cells ' precise what You want to do with those cells Next c End Sub |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"For" will not work because i am not running the code 333 times. Would this
code compile: Do While in MyRange.Cells xxx Loop "rumi" wrote: You should write a macro resembling this: Sub myMacro () set myRange = Range("E1:E333") For Each c in myRange.Cells ' precise what You want to do with those cells Next c End Sub |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That was my original plan, until i realized i don't want to run it 333, or
once per cell. The code in the loop is searching for a specific value, i want the search to only take place between E1 and E333, and once it reaches E333 stop searching. "Jim May" wrote: For i = 1 to 333 'your code here next i "Rob" wrote: i want to write a loop that will run until it reaches cell E333, starting at E1. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For i = 1 to 333
'your code here next i "Rob" wrote: i want to write a loop that will run until it reaches cell E333, starting at E1. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
shouldn't take that long to do it, just turn off the screenupdating.
-- Gary "Rob" wrote in message ... That was my original plan, until i realized i don't want to run it 333, or once per cell. The code in the loop is searching for a specific value, i want the search to only take place between E1 and E333, and once it reaches E333 stop searching. "Jim May" wrote: For i = 1 to 333 'your code here next i "Rob" wrote: i want to write a loop that will run until it reaches cell E333, starting at E1. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple loop? | Excel Programming | |||
If-Else Simple Loop function | Excel Programming | |||
Simple question on For...Next loop | Excel Programming | |||
Some help w/ simple loop, please? | Excel Programming | |||
simple loop macro | Excel Programming |