I am having trouble with a pretty basic function. I need to copy everything in Column A (header excluded) and paste the unique values in column A in a different sheet. I chose to try to paste all of the values and then remove all of the duplicates. If there is an easier way to do this, please let me know.
I am getting the "application-defined or object-defined error" message and the break is occuring at this line:
Code:
Sheets("Raw Data").Range("A:A").Copy
Sheets("All Materials").Range("A3:A").Select
ActiveRange.Paste
Application.CutCopyMode = False
ActiveSheet.Range("A:A").RemoveDuplicates Columns:=1, Header:=xlYes
I am getting the "application-defined or object-defined error" message and the break is occuring at this line:
Code:
Sheets("All Materials").Range("A3:A").Select