Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Try this macro. Alt+F11 to open VB editor. Right click 'ThisWorkbook' and insert module and paste the code in and run it. Change the sheet name to the correct one. Sub Copy_B_To_C() Dim ws As Worksheet Set ws = ThisWorkbook.Worksheets("Sheet1") With ws .Columns("B:B").AdvancedFilter Action:=xlFilterCopy, _ CopyToRange:=.Range("C1"), Unique:=True End With End Sub -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "michelle439731" wrote: Yes, that is what I want to do. Look at column B, which contains duplicates, copy all unique parameters to column C, such that column C contains no duplicates. How do I do that in code? What is the command? Thank you very much for your help, Michelle |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Remove duplicates found in master list | Excel Discussion (Misc queries) | |||
Remove Duplicates; How can I get a list of items removed? | Excel Discussion (Misc queries) | |||
Remove duplicates from list but leaving one row with highest date | Excel Programming | |||
How to remove duplicates from a list and copy new list to new colu | Excel Worksheet Functions | |||
dynamic list to remove duplicates and spaces ? | Excel Programming |