Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Help with If / Loop / Adding cells

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Help with If / Loop / Adding cells

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding criteria to loop Andyjim Excel Worksheet Functions 0 January 13th 08 08:54 PM
Adding a loop to conditional delete code maw via OfficeKB.com New Users to Excel 21 August 15th 06 04:11 PM
Adding in loop Sally Mae Charts and Charting in Excel 1 July 5th 06 01:34 PM
Adding items to ComboBox in a loop? cmpcwil2[_15_] Excel Programming 3 May 4th 06 10:31 AM
Problem adding charts using Do-Loop Until loop Chris Bromley[_2_] Excel Programming 2 May 23rd 05 01:31 PM


All times are GMT +1. The time now is 01:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"