Hi
Try
Sub bbb()
Dim nodupes As New Collection
Dim OutSH As Worksheet
Set OutSH = Sheets("sheet2")
OutSH.Range("A:B").ClearContents
On Error Resume Next
For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row
nodupes.Add Item:=Cells(i, 1).Value, key:=Cells(i, 1).Value
Next i
On Error GoTo 0
For i = 1 To nodupes.Count
getone = Application.InputBox("Pick a row of " & Application.CountIf(Range("A:A"), nodupes(i)) & " for " & nodupes(i), Type:=1)
datarow = WorksheetFunction.Match(nodupes(i), Range("A:A"), 0) + getone - 1
OutSH.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Resize(1, 6).Value = Cells(datarow, 1).Resize(1, 6).Value
Next i
End Sub
This assumes that the source data starts in row 1 and sheet2 exists. There is no error checking to make sure the row specified is valid for that name.
rylo
Bookmarks