hello everyone,
i was wondering can i amend my code below into something that it will not remove duplicate if "UNASSIGNEDSHIFT UNASSIGNEDSHIFT" was found in column B?
here is my code:
Columns("B:B").Select
Selection.Copy
Columns("Q:Q").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveSheet.Range("$Q:$Q").RemoveDuplicates Columns:=1, Header:=xlNo
thank you very much for your guidance
i was wondering can i amend my code below into something that it will not remove duplicate if "UNASSIGNEDSHIFT UNASSIGNEDSHIFT" was found in column B?
here is my code:
Columns("B:B").Select
Selection.Copy
Columns("Q:Q").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveSheet.Range("$Q:$Q").RemoveDuplicates Columns:=1, Header:=xlNo
Book1 | ||||||||
---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | |||
1 | Name | Person No. | JOB | Start Time | End Time | |||
2 | Hillary | 18234 | 8:45 | 18:15 | ||||
3 | Oscar | 18262 | 11:30 | 21:00 | ||||
4 | Miki | 18376 | 11:30 | 21:00 | ||||
5 | UNASSIGNEDSHIFT UNASSIGNEDSHIFT | UNASSIGNEDSHIFT71083081 | 13:15 | 22:45 | ||||
6 | UNASSIGNEDSHIFT UNASSIGNEDSHIFT | UNASSIGNEDSHIFT71083267 | 13:15 | 22:45 | ||||
Sheet1 |
thank you very much for your guidance