Sub GetRed()
With Sheets("Sheet1").UsedRange
.AutoFilter Field:=1, Criteria1:=vbRed, Operator:=xlFilterFontColor
.Copy Destination:=Sheets("Sheet2").Range("A1")
.AutoFilter
End With
End Sub
Can you explain exactly what that means?it is only showing reference from col A, other three column data is not referenced.
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Apt name | Calls | start time | end time | ||
2 | ACH10P01 | 2 | 8/15/2018 11:51:49 AM | 8/15/2018 12:23:53 PM | ||
3 | ALD10P01 | 8 | 8/15/18 12:36 PM | 8/15/18 9:27 PM | ||
4 | data 1 | 2 | Start time 3 | End time 3 | ||
5 | data 2 | 6 | Start time 4 | End time 4 | ||
6 | data 3 | 5 | Start time 5 | End time 5 | ||
7 | data 4 | 3 | Start time 6 | End time 6 | ||
8 | data 5 | 2 | Start time 7 | End time 7 | ||
9 | data 6 | 3 | Start time 8 | End time 8 | ||
10 | data 7 | 1 | Start time 9 | End time 9 | ||
11 | data 8 | 2 | Start time 10 | End time 10 | ||
12 | ||||||
Sheet1 |
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Apt name | Calls | start time | end time | ||
2 | ACH10P01 | 2 | 8/15/2018 11:51:49 AM | 8/15/2018 12:23:53 PM | ||
3 | data 1 | 2 | Start time 3 | End time 3 | ||
4 | data 2 | 6 | Start time 4 | End time 4 | ||
5 | data 6 | 3 | Start time 8 | End time 8 | ||
6 | data 7 | 1 | Start time 9 | End time 9 | ||
7 | data 8 | 2 | Start time 10 | End time 10 | ||
8 | ||||||
Sheet2 |