Excel VBA to copy unique values duplicate 1st value

后端 未结 2 686
野性不改
野性不改 2021-01-17 06:11

I have this excel VBA code

Sub Module()

Range(\"A1:A10\").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range(\"D1\"), Unique:=True

End Sub
         


        
2条回答
  •  旧巷少年郎
    2021-01-17 06:41

    Insert another cell above cell A1. Write "Header" or any other text in this box. Change the range to A1:A11. This should solve your problem.

提交回复
热议问题