Print Area

  • Thread starter Thread starter Guest
  • Start date Start date
Yes, your right. That whole loop ends up just giving you the used last row
in column A from what I can see. Not sure why the loop is even there.
 
Possibly
for i = 1 to 50
if cells(i + 39) > 0 then cells(i + 39,"N").Value = 1
Next


if you want to quit the first time the cell is not > 0 then

for i = 1 to 50
if cells(i + 39) > 0 then
cells(i + 39,"N").Value = 1
else
exit for
end if
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top