Hi
I have searched for answers to this but couldn't find any. I have a list which consists of different products eg blue, red and green. There are around 10 columns (of extra info) and about 1000 lines and this info changes weekly. What i want to do is automate the process of filtering by "colour" and copying the range (10 columns by however many rows) and in doing so create 3 files....blue.xlsm, red.xlsm & green.xlsm.
The bit i am getting stuck on the most is how to automatically select the range for each filter of red, blue and green. I am sorting the colour column, then filtering to select red, copy range and paste as values in new workbook, then repeating the process for blue and green.
The trouble is that the number of rows varies and the start point row eg A column needs to be the first line of the new data.
[TABLE="class: outer_border, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]DATE[/TD]
[TD]NAME[/TD]
[TD]TIME[/TD]
[TD]COLOUR[/TD]
[TD]WEIGHT[/TD]
[TD]HEIGHT[/TD]
[TD]DEPTH[/TD]
[TD]LENGTH[/TD]
[TD]GRADE[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1.9
[/TD]
[TD]Dave[/TD]
[TD]0800[/TD]
[TD]blue[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2.9[/TD]
[TD]John[/TD]
[TD]0800[/TD]
[TD]blue[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]100[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1.9[/TD]
[TD]dave[/TD]
[TD]0800[/TD]
[TD]red[/TD]
[TD]50[/TD]
[TD]50[/TD]
[TD]50[/TD]
[TD]50[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]3.9[/TD]
[TD]steve[/TD]
[TD]0800[/TD]
[TD]red[/TD]
[TD]60[/TD]
[TD]60[/TD]
[TD]60[/TD]
[TD]60[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]3.9[/TD]
[TD]dior[/TD]
[TD]0800[/TD]
[TD]green[/TD]
[TD]44[/TD]
[TD]55[/TD]
[TD]66[/TD]
[TD]66[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]5.9[/TD]
[TD]cath[/TD]
[TD]0900[/TD]
[TD]red[/TD]
[TD]22[/TD]
[TD]33[/TD]
[TD]22[/TD]
[TD]22[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]1.9[/TD]
[TD]sarah[/TD]
[TD]0900[/TD]
[TD]green[/TD]
[TD]56[/TD]
[TD]34[/TD]
[TD]34[/TD]
[TD]34[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]4.9[/TD]
[TD]james[/TD]
[TD]0900[/TD]
[TD]blue[/TD]
[TD]34[/TD]
[TD]12[/TD]
[TD]12[/TD]
[TD]12[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Please can one of you clever people help me out as i'm really stuck on this. End result should be 3 files that contain the rows relating to the colour eg red, blue and green.
Really would appreciate your help and i hope my explanation makes sense?
Best wishes
Mike
I have searched for answers to this but couldn't find any. I have a list which consists of different products eg blue, red and green. There are around 10 columns (of extra info) and about 1000 lines and this info changes weekly. What i want to do is automate the process of filtering by "colour" and copying the range (10 columns by however many rows) and in doing so create 3 files....blue.xlsm, red.xlsm & green.xlsm.
The bit i am getting stuck on the most is how to automatically select the range for each filter of red, blue and green. I am sorting the colour column, then filtering to select red, copy range and paste as values in new workbook, then repeating the process for blue and green.
The trouble is that the number of rows varies and the start point row eg A column needs to be the first line of the new data.
[TABLE="class: outer_border, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]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]3[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]4.9[/TD]
[TD]james[/TD]
[TD]0900[/TD]
[TD]blue[/TD]
[TD]34[/TD]
[TD]12[/TD]
[TD]12[/TD]
[TD]12[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Please can one of you clever people help me out as i'm really stuck on this. End result should be 3 files that contain the rows relating to the colour eg red, blue and green.
Really would appreciate your help and i hope my explanation makes sense?
Best wishes
Mike