Option Explicit
Sub Extract_Unique_Records()
Dim Search_Data() As String
Dim Search_Array_Data() As String
Dim i As Integer
Dim j As Integer
Dim k As Integer
Dim l As Integer
Dim unique As Boolean
'record the Search Data
i = 0
Sheets("Sheet1").Select
Range("A1").Select
Do
i = i + 1
ActiveCell.Offset(1, 0).Select
Loop Until IsEmpty(ActiveCell)
i = i - 1
ReDim Search_Data(1 To i) As String
Range("A2").Select
For k = 1 To i
Search_Data(k) = ActiveCell.Value
ActiveCell.Offset(1, 0).Select
Next k
'record the search array data
j = 0
Sheets("Sheet2").Select
Range("A1").Select
Do
j = j + 1
ActiveCell.Offset(1, 0).Select
Loop Until IsEmpty(ActiveCell)
ReDim Search_Array_Data(1 To i) As String
Range("A2").Select
For l = 1 To i
Search_Array_Data(l) = ActiveCell.Value
ActiveCell.Offset(1, 0).Select
Next l
'check for unique records and record them in sheet3
Sheets("Sheet3").Select
Range("A1").Select
For k = 1 To i
unique = True
For l = 1 To j
If Search_Data(k) = Search_Array_Data(l) Then
unique = False
End If
Next l
If unique = True Then
ActiveCell.Value = Search_Data(k)
ActiveCell.Offset(1, 0).Select
End If
Next k
End Sub