Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have created an application that exports the name, address, postal code from another program into excel. I need to remove duplicate records using vba so the user doesnt have to remove duplicates manually. I have tried using the Advanced Filter macro: Range("B1:B10").AdvancedFilter xlFilterInPlace, unique:=True1"), Unique:=True This code works fine if I know each time how many records there are, but as my application is dynamic and the number of records is always changing this code doesnt do exactly what I want it to. Any suggestions. Thanks. -- quigleyj |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
set rng = Range(Range("B1"),Range("B1").End(xldown))
rng.AdvancedFilter xlFilterInPlace, Unique:=True -- Regards, Tom Ogilvy "jeff quigley" wrote in message ... Hello, I have created an application that exports the name, address, postal code from another program into excel. I need to remove duplicate records using vba so the user doesnt have to remove duplicates manually. I have tried using the Advanced Filter macro: Range("B1:B10").AdvancedFilter xlFilterInPlace, unique:=True1"), Unique:=True This code works fine if I know each time how many records there are, but as my application is dynamic and the number of records is always changing this code doesnt do exactly what I want it to. Any suggestions. Thanks. -- quigleyj |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I remove duplicates | Excel Discussion (Misc queries) | |||
remove duplicates | Excel Discussion (Misc queries) | |||
Remove Duplicates | New Users to Excel | |||
How to remove duplicates? | Excel Discussion (Misc queries) | |||
Remove duplicates | Excel Discussion (Misc queries) |