Sounds like you need something like:
Private Sub CommandButton1_Click()
Dim wb As Workbook, wb2 As Workbook
Dim ws As Worksheet
Dim filePath As String
Dim myRange As Range
Dim c as Cell
filePath = "C:\Users\Name\Desktop\VBA Projects\name\Wb2.xlsm"
Set wb = ActiveWorkbook
Set myRange = ActiveSheet.Range("A1:A100")
Application.ScreenUpdating = False
'Open wb2
Set wb2 = Workbooks.Open(filePath)
' now loop down both ranges comparing the values, and if equal copy across whatever needs to be copied
For Each c in myRange
If c.value=wb2.ActiveSheet.cells(c.Row,c.Column).Value Then
' in this case, the things were equal, so we do the copying
wb.ActiveSheet.Cells(c.Row,c.Column+1) = wb2.ActiveSheet.Cells(c.Row,c.Column+1) ' does column B
wb.ActiveSheet.Range("C" & c.Row & ":Z" & c.Row)=wb2.ActiveSheet.Range("C" & c.Row & ":Z" & c.Row) ' does C to Z
End if
Next c
wb2.Close True
Application.ScreenUpdating = True
End Sub
I haven't tried this, it probably won't even compile, but should get you started. Hopefully you can see how I meant for it to work. Do ask questions on it if you want!