Macro to copy Yellow cells to another sheet

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,
OK soi'm looking for a macro that can copy the cells i highlight in yellow into another sheet.

I have a shhet called raw data, it holds a lot of data

to make it quick and simple i want to go down the list an fill the cells i want yellow
so there are a few rules that make this simpler

The columns are coulmn B to F
every row is coloured yellow b to f if i want it so you can just look down column B for example,

there will be more than one lot of yellow rows I need to copy over all of them

Once copied it needs to go into sheet "Lists" column A and last row+1

thats it

please help if you can

thanks

Tony
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Do you just want to copy columns B:F?
 
Upvote 0
Ok, how about
VBA Code:
   With ActiveSheet
      .Range("B1:F1").AutoFilter 1, RGB(255, 255, 0), xlFilterCellColor
      .AutoFilter.Range.Offset(1).Copy Sheets("Lists").Range("A" & Rows.Count).End(xlUp).Offset(1)
      .AutoFilterMode = False
   End With
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,892
Members
449,194
Latest member
JayEggleton

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