Macro to copy Yellow cells to another sheet

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
2,978
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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
68,157
Office Version
  1. 365
Platform
  1. Windows
Do you just want to copy columns B:F?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
68,157
Office Version
  1. 365
Platform
  1. Windows
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
 

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
2,978
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Excellent,
Didn't know we could filter by cell colour
Thanks
Tony
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
68,157
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,231
Messages
5,768,938
Members
425,506
Latest member
AndreaWorkPlace

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
Top