lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I wrote the code below. It did not work until I typed Columns:=1
Why is that? why I need columns=1 when I said the range is a1:a25. Thank you so much.
I wrote the code below. It did not work until I typed Columns:=1
Why is that? why I need columns=1 when I said the range is a1:a25. Thank you so much.
Code:
Sub removeduplicate()
Range("a1:a25").RemoveDuplicates Columns:=1
End Sub
Last edited: