Hi,
Anyone any idea why this doesn't work?
I want to copy the unique values from Column A in Sheet1 to B6:B? in Sheet2, but I don't want the formatting to come across, hence xlPasteValues. But it doesn't like the xlPasteValues part.
Having Sunday evening brain issues here and can't figure out how to tweak it to deliver what I need.
Any advice welcome!
Thanks,
Matty
Anyone any idea why this doesn't work?
Code:
With Sheet1
LR = .Range("A" & .Rows.Count).End(xlUp).Row
With .Range("A2:A" & LR)
.AdvancedFilter Action:=xlFilterInPlace, Unique:=True
.Copy Sheet2.Range("B6") [COLOR=red]PasteSpecial Paste:=xlPasteValues[/COLOR]
End With
End With
I want to copy the unique values from Column A in Sheet1 to B6:B? in Sheet2, but I don't want the formatting to come across, hence xlPasteValues. But it doesn't like the xlPasteValues part.
Having Sunday evening brain issues here and can't figure out how to tweak it to deliver what I need.
Any advice welcome!
Thanks,
Matty