VBA: Separate data from Sheet1 to other Sheets based on filtering logic and conditional formatting

dougwilson1

New Member
Joined
Dec 8, 2012
Messages
3
Hello all,

Would very much appreciate some help with this one...

I want to take cuts of data from my main sheet (Sheet1) and paste it onto sheet 2,3,4 etc based on some logic and conditional formatting (it has to be conditional formatting, there isn't a workaround to this part unfortunately).

Probably best if i outline what i would like the macro to do step by step:

1. Sheet1 (has all the data): Filter on Cell A7 for any description containing "John"
2. Still on Sheet1, filter column D7 for any cells colored with color code 49407.
3. Copy this filtered data (columns run from A-F if you need this info, the number of returned rows will vary day to day though) and paste on Sheet2 (from cell a14 if possible).

4. Repeat steps 1-3, but this time for any description containing "Louise". Paste to Sheet3. (Guessing you will need to un-filter the data set before reapplying these filters?)
5. Repeat steps 1-3, but this time for any description containing "Ben", "Jack" or "James". Paste to Sheet4.

That's it. Is this possible? I'm having trouble working this one out :confused:

Thank you & Happy New Year to you all!

Doug
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,216,190
Messages
6,129,422
Members
449,509
Latest member
ajbooisen

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