I am hung up on one of those wonderful Run Time Error 438 situations. This is the code:
Selection.AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=Workbooks("Replenishment Reports.xlsm").Sheet2.Range("A2"), Unique:=True
I'm trying to copy only the unique values of a column (Selection) to another workbook. Based on what I'm seeing around the internets, it seems like an issue with the references between workbooks. I can't seem to get it to work though.
Selection.AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=Workbooks("Replenishment Reports.xlsm").Sheet2.Range("A2"), Unique:=True
I'm trying to copy only the unique values of a column (Selection) to another workbook. Based on what I'm seeing around the internets, it seems like an issue with the references between workbooks. I can't seem to get it to work though.