hello,
i am having trouble selecting cells in a loop. i tried the following code:
(also tried teh commented line)
this is just some garbage code to see if this was the problem in my real code.. it seems it was.. i get the error:
"Run time error 1004. Application defined or object defined error"
anyone know what is wrong? and if so.. how can i fix this?
thanks!
i am having trouble selecting cells in a loop. i tried the following code:
Code:
Do While (i < 10)
'Range(ActiveCell.Offset(i, 0)).Select
Cells(i, 1).Select
i = i + 1
Loop
(also tried teh commented line)
this is just some garbage code to see if this was the problem in my real code.. it seems it was.. i get the error:
"Run time error 1004. Application defined or object defined error"
anyone know what is wrong? and if so.. how can i fix this?
thanks!