Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ok - i think i got most of what i am looking for in the title!!
I have a workbook, i have data in rows - (cols A:CJ) Loop cells (col E)- get all rows with matching data in where the first 4 characters = ("XXXX") - paste all of these into different wb, worksheet ( "FAR" ) then again for ("YYYY") etc.... can anyone show me some quick code that i can throw in??? note: the workbook is already open, and is referenced in the code already.... (reply to |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Instead of looping through your data in column E, use AutoFilter on all the
data with the filter field as column E and the criteria as "XXXX". Then copy/paste the filtered data to your other workbook. The looping will be done on the filter criteria to do the above routine again with "YYYY". Without more specifics, I can't give you code, but the Macro recorder would give you the filtering routine code to build your loop around. Mike F "Buffyslay_co_uk" wrote in message om... ok - i think i got most of what i am looking for in the title!! I have a workbook, i have data in rows - (cols A:CJ) Loop cells (col E)- get all rows with matching data in where the first 4 characters = ("XXXX") - paste all of these into different wb, worksheet ( "FAR" ) then again for ("YYYY") etc.... can anyone show me some quick code that i can throw in??? note: the workbook is already open, and is referenced in the code already.... (reply to |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Or use advanced filter to copy the data with one command.
-- Regards, Tom Ogilvy "Mike Fogleman" wrote in message news:CS6Mc.150374$JR4.27865@attbi_s54... Instead of looping through your data in column E, use AutoFilter on all the data with the filter field as column E and the criteria as "XXXX". Then copy/paste the filtered data to your other workbook. The looping will be done on the filter criteria to do the above routine again with "YYYY". Without more specifics, I can't give you code, but the Macro recorder would give you the filtering routine code to build your loop around. Mike F "Buffyslay_co_uk" wrote in message om... ok - i think i got most of what i am looking for in the title!! I have a workbook, i have data in rows - (cols A:CJ) Loop cells (col E)- get all rows with matching data in where the first 4 characters = ("XXXX") - paste all of these into different wb, worksheet ( "FAR" ) then again for ("YYYY") etc.... can anyone show me some quick code that i can throw in??? note: the workbook is already open, and is referenced in the code already.... (reply to |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find Matching Data Within Numerous Rows | Excel Worksheet Functions | |||
count number of rows with 2 matching text cells | Excel Worksheet Functions | |||
Find matching date in another worksheet, copy and paste data | Excel Discussion (Misc queries) | |||
Can I merge data in 2 sheets matching rows of data by last name? | Excel Discussion (Misc queries) | |||
constructing a copy-paste loop that skips rows | Excel Programming |