Check it out.
Hit Alt & F11 to open the VBA editor, you will find the code there.
Sub Button3_Click()
Dim a As Range, b As Range, c As Range, ws As Worksheet, ws2 As Worksheet
Dim d As Range, e As Range, f As Range, cs As Range
Dim Rws As Long, Rng As Range
Set ws = Sheets(1)
Set ws2 = Sheets(2)
Set a = ws.Range("A2")
Set b = ws.Range("B2")
Set c = ws.Range("C2")
'--------
Set d = ws.Range("D2")
Set e = ws.Range("E2")
Set f = ws.Range("F2")
'---------------
With ws2
Rws = .Cells(Rows.Count, "A").End(xlUp).Row
Set Rng = Range(.Cells(1, 1), .Cells(Rws, 1))
End With
For Each cs In Rng.Cells
If cs = a.Value And cs.Offset(0, 1) = b.Value And cs.Offset(0, 2) = c.Value Then
cs.Offset(0, 3) = d
cs.Offset(0, 4) = e
cs.Offset(0, 5) = f
End If
Next cs
End Sub
Bookmarks