Dr. Demento
Member
I've found code that works great (thanks to Derek here), however, I'm wondering if someone could assist me to make it a little more user friendly. Rather than hard-code the original location, number of columns in each list, and the output destination, I'm wondering if it's possible to simply define two named tables and ask the user to choose the output destination?
Thanks for the assist!
Thanks for the assist!
Code:
Sub Align()
For Each cell In Range("A1", Range("A65536").End(xlUp))
Range(cell, cell.Offset(0, 19)).Cut Destination:=Range("AP65536").End(xlUp).Offset(1, 0)
On Error Resume Next
Columns("U:U").Select
Selection.Find(What:=cell.Value, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
).Select
Range(ActiveCell, ActiveCell.Offset(0, 19)).Cut Destination:=Range("AP65536").End(xlUp).Offset(0, 20)
Next
End Sub