Sheets("資料來源").Select
k = Sheets("資料來源").Range("a65536").End(xlUp).Row
p = Sheets("名單").Range("a65536").End(xlUp).Row
Sheets("比對後資料").Cells(1, 1).Value = Sheets("資料來源").Cells(1, 1)
Sheets("比對後資料").Cells(1, 4).Value = Sheets("資料來源").Cells(1, 3)
Sheets("比對後資料").Cells(1, 5).Value = Sheets("資料來源").Cells(1, 4)
c = 2
For n = 2 To k
For m = 1 To p
Do While rng(1) <> ""
Set rng(4) = rng(3).Find(rng(1), lookat:=xlWhole)
If Not rng(4) Is Nothing Then
rng(3).Replace rng(1), "=book", xlWhole
With rng(3).SpecialCells(xlCellTypeFormulas, xlErrors)
.Value = rng(1)
With rng(1)
For Each E In .Cells
For Each K In .Cells
With Sheets("比對後資料")
Cells(.UsedRange.Rows.Count + 1, "C").Value = K.Offset(, 1)
Cells(.UsedRange.Rows.Count, "A").Value = E
Cells(.UsedRange.Rows.Count, "B").Value = E.Range("B1")