BigDelGooner
Board Regular
- Joined
- Aug 17, 2009
- Messages
- 197
Hi guys
I've simplified the code but having trouble with the following...
for c = 3 to Range("A65536").end(xlup).row
if cells(c,2).value = true then
rows(c).insert
end if
next
Basically because I am inserting row during the procedure the loop only remembers the initial last row rather than continually checking the range("A65536").end(xlup).row after each loop.
I have tried using a named range (i.e. End_Row) and incorporating this into the loop but this doesnt work either.
Any ideas?
I've simplified the code but having trouble with the following...
for c = 3 to Range("A65536").end(xlup).row
if cells(c,2).value = true then
rows(c).insert
end if
next
Basically because I am inserting row during the procedure the loop only remembers the initial last row rather than continually checking the range("A65536").end(xlup).row after each loop.
I have tried using a named range (i.e. End_Row) and incorporating this into the loop but this doesnt work either.
Any ideas?