If row is green copy all date to another row

Adam_98

New Member
Joined
Sep 17, 2021
Messages
18
Office Version
  1. 365
Platform
  1. Windows
I'm quite new to Excel and I'm trying to create a document to help me for work. I have a main sheet where all my data is inputted into. The rows in this data will be Green, Amber or red depending on the status. What my goal is, when a row is green, it copies the data from one sheet to another. Is there any way to do this and is any further information needed?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
What are your criteria for green and red colors?
I Mean what is you enter to change color.
 
Upvote 0
What are your criteria for green and red colors?
I Mean what is you enter to change color.
The business is a collection service so if customer has agreed for a pickup it will be green. If we're waiting on a response from the customer it will be amber and if the customer doesn't want the pickup we will fill this red. A record of lost pickup is needed on the main sheet.
 
Upvote 0
please share your data sheet so I will better understand and give some help to you.
 
Upvote 0
Dear,

Please check the attached sheet.
1st select quotes sheet then press Ctrl+M for the result
 
Upvote 0
Please post you solution to the board, so that everyone can see, as per forum rules.
 
Upvote 0
1st step; insert a new tab in your workbook give Name (Spread Data)
1631894494648.png

2nd Step; Press Alt+F11
3rd Step; select insert and Add a module

1631894838411.png

4th Step; Duble click on Module
5th Step; Copy B/M Code and past in module


Sub Macro3()
'
' Macro3 Macro
'

'
Application.ScreenUpdating = False
Sheets("quotes").Select
Range("A4:AA4").Select
Selection.AutoFilter
Selection.AutoFilter
Range("A4").Select
ActiveSheet.Range("$A$4:$AA$500").AutoFilter Field:=1, Criteria1:=RGB(255, 0 _
, 0), Operator:=xlFilterCellColor
Range("A4").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("Spread Data").Select
Range("A1").Select
ActiveSheet.Paste
Selection.Columns.AutoFit
Sheets("quotes").Select
Range("A4:AA4").Select
Selection.AutoFilter
Sheets("Spread Data").Select
Range("A1").Select
End Sub
6th Step; Go to developer tab and click on macros and next click on Options.
1631895413578.png

and in Last Create Shortcut key
1631895497605.png
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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