Filter,copy,paste in excel

vijay2482

Board Regular
Joined
Mar 3, 2009
Messages
142
Hi everybody,
First of all, thanks to all those who help me in my previous posts.

I'm working on an excel that contains a macro to color the cells based on the columnS.
This part of the code works perfectly.
Now I need another macro, that could filter the rows based on each color in different columns,copy the filtered rows from the current workshhet and paste it in a destination worksheet.
The destination workbook contains different worksheets for rows filtered based on the color.
eg:
The rows with orange color(color 44) has to be pasted in the Due.Amt worksheet of the destination workbook.
The rows with green color(color 35) has to be pasted in the Expenses worksheet of the destination workbook.
and so on for the different colors(the coloumn name in the source worksheet and the worksheet name in the destination workbook will be the same, so the paste shoud be done respectively).
The destination worksheet may/may not contain datas, in that case, the paste as to be done in the next available empty row.
The previous datas should not be deleted/overwritten in the destination worksheet.

Not able to attach a workbook here.

Any help and suggestions will be helpful.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
First off, I'd suggest you do your filtering based on the criteria used to create the colour coding, rather than the colour itself.

After that, a good trawl of this message board ought to find several posts detailing how to filter and split data onto other worksheets/books, since it's a question that gets asked a lot.
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,693
Members
452,938
Latest member
babeneker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top