Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro that sorts data on sheet2:sheet9. The purpose of this was to
move all rows with completed data (data not to be moved to sheet1) to the bottom of the list of data. The completed data is determined by columnH who's header is "% complete". If this =100 then I don't use it. On sheet1 I have a cell that counts the number of rows that have data that is less than 100% complete on each sheet from sheet2:sheet9 (basically from m1:n9 I have the sheet name down m1:m9 and the number of rows I want to copy to sheet1 from n1:n9). M N 1 sheet2 30 2 sheet3 10 3 sheet4 60 4 sheet5 105 Can I write a loop in vba that will copy the first 30 rows from sheet2 and the first 10 rows from sheet3 and the first 60 rows from sheet4 and so on to sheet1? The data I want copied is in columnA:columnI on each sheet. So, on sheet1 I want to fill A1:I205 with the data from sheet2:sheet from my example above. Is there a better way of doing this? Am I on the right track? Am I at least on a possible track? Any help is appreciated, Gary |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to sheet1 data goes to sheet2 automaticaly ? | Excel Worksheet Functions | |||
copy data from sheet2 to sheet1 when sheet2 has variable # of rows | Excel Discussion (Misc queries) | |||
copying data from sheet1 to sheet2 | Excel Worksheet Functions | |||
=SUM(Sheet2:Sheet9!IV65536)-meaning of equation? | Excel Discussion (Misc queries) | |||
How To Retrieve Data from Sheet2 into Sheet1 | Excel Worksheet Functions |