Freeman2022
New Member
- Joined
- Nov 3, 2021
- Messages
- 44
- Office Version
- 365
- Platform
- Windows
Thank you so much for the VBA code, that also works.OK, wasn't sure if this was just a "one-time" thing or not.
You just got some good VBA and non-VBA solutions (see Fluff's solution).
Yes it was, sorry about thatWasn't my solution. pjoaquin provided the VBA solution.
Thank you for the VBA code, that also works.This code should work
VBA Code:Sub freeman() Dim lastrowa As Long, lastrowb As Long lastrowa = Range("A" & Rows.Count).End(xlUp).Row lastrowb = Range("B" & Rows.Count).End(xlUp).Row Range("A" & lastrowa + 1).Resize(lastrowb - 1, 1).Value = Range("B2:B" & lastrowb).Value Range("A1:A" & lastrowa + lastrowb - 1).RemoveDuplicates Columns:=1, Header:=xlYes End Sub