這兩種也可以耶~好多方法
如果我的產品在第M列 地區在第Q列 資料總共到AD列
是要改成
Sub Ex()
Dim R As Range, Rng As Range
With ActiveSheet.UsedRange
.Columns("M:Q").AdvancedFilter Action:=xlFilterInPlace, Unique:=True
Sub Ex1()
Dim Sh As Worksheet, wb As Workbook
Set Sh = ActiveSheet
Sh.Copy
Set wb = ActiveWorkbook
With wb.Sheets(1)
.UsedRange.Columns("M:Q").AdvancedFilter Action:=xlFilterInPlace, Unique:=True