Help with If / Loop / Adding cells

K

keri

Hi,

I am looking for code to accomplish the below but my efforts are not
working and i'm struggling to find a topic that is similar enough to
help.

I need this code to loop through all worksheets named "sheet" & number
(eg sheet1,sheet2)

I need to look in column A to find the value "1"
If for example "1" is found in row 3 then

Copy I3 to J3
Then J4 = I4 + J3
Then J5 = I5 + J4
Then J6 = I6 + J5
Etc until I is blank

Then loop to next worksheet.


Many thanks for your help in advance.
 
K

keri

Thanks so much for this, I can use this code in so many other places
now I understand how it works. Thanks again
 

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

Top