Greetings All,
I am trying to create a macro that will take a list of names and using the advanced filter, copy the unique values to another location. The new list of unique names is being used to populate another area of the workbook. Seems easy, but for some reason, it will not work twice. When I go to the original list and make a change (say change a name from "General Hospital" to "Anytown Hospital"), the macro seems to run, but it does not make the change. I added in some code to clear the destination contents for the unique list, but it's not working. Any suggestions would be very welcome!
Range("V1:V46").Select
Selection.ClearContents
Range("S1:S46").Select
Range("S1:S46").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range( _
"V1:V46"), Unique:=True
Sheets("Client Info").Select
Range("F5").Select
End Sub
Thanks!
Cathy
I am trying to create a macro that will take a list of names and using the advanced filter, copy the unique values to another location. The new list of unique names is being used to populate another area of the workbook. Seems easy, but for some reason, it will not work twice. When I go to the original list and make a change (say change a name from "General Hospital" to "Anytown Hospital"), the macro seems to run, but it does not make the change. I added in some code to clear the destination contents for the unique list, but it's not working. Any suggestions would be very welcome!
Range("V1:V46").Select
Selection.ClearContents
Range("S1:S46").Select
Range("S1:S46").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range( _
"V1:V46"), Unique:=True
Sheets("Client Info").Select
Range("F5").Select
End Sub
Thanks!
Cathy