M Mister Dolopo Feb 13, 2004 #1 How with code would I do an auto filer - unique values and copy these values to another sheet? thanks
How with code would I do an auto filer - unique values and copy these values to another sheet? thanks
P papou Feb 13, 2004 #2 Sheets("Sheet1").Range("A1:A10").AdvancedFilter Action:=xlFilterCopy, _ CopyToRange:=Sheets("Sheet2").Range("A1"), Unique:=True Regards Pascal
Sheets("Sheet1").Range("A1:A10").AdvancedFilter Action:=xlFilterCopy, _ CopyToRange:=Sheets("Sheet2").Range("A1"), Unique:=True Regards Pascal
R Ron de Bruin Feb 13, 2004 #3 Try this Mister Column A must have a header cell Sub test() ActiveSheet.Columns("A:A").AdvancedFilter _ Action:=xlFilterCopy, _ CopyToRange:=Sheets("Sheet2").Range("A1"), Unique:=True End Sub
Try this Mister Column A must have a header cell Sub test() ActiveSheet.Columns("A:A").AdvancedFilter _ Action:=xlFilterCopy, _ CopyToRange:=Sheets("Sheet2").Range("A1"), Unique:=True End Sub
M Mister Dolopo Feb 13, 2004 #4 Thanks Guys, Small problem, this macro copies my heading value as well as the data below. Can this be rectified to only copy the data? thanks
Thanks Guys, Small problem, this macro copies my heading value as well as the data below. Can this be rectified to only copy the data? thanks
D Dave Peterson Feb 14, 2004 #5 Just delete the cell (and shift up) or delete the whole row after you do the copy. .... sheets("sheet2").rows(1).delete ....
Just delete the cell (and shift up) or delete the whole row after you do the copy. .... sheets("sheet2").rows(1).delete ....