I have this macro that I found but it gives me an error, I have need it to start in cell B3 not B3 as I have merged headers in Rows A1:H2
VBA Code:
Sub Copy_Products()
Dim lastrow As Long, erow As Long
Application.ScreenUpdating = False
Worksheets("Swings").Activate
Range("A2:XDH700").ClearContents
'to check the last filled row on sheet named Product Info
lastrow = Worksheets("Product Info").Cells(Rows.Count, 1).End(xlUp).Row
For i = 2 To lastrow
If Worksheets("Product Info").Cells(i, 27).Value = "Freestanding > Freestanding Swings, Play" Then
Worksheets("Product Info").Cells(i, 3).Copy
erow = Worksheets("Swings").Cells(Rows.Count, 3).End(xlUp).Row
Worksheets("Product Info").Paste Destination:=Worksheets("Swings").Cells(erow + 1, 2)
Worksheets("Product Info").Cells(i, 4).Copy
Worksheets("Product Info").Paste Destination:=Worksheets("Swings").Cells(erow + 1, 3)
Worksheets("Products").Cells(i, 5).Copy
Worksheets("Products").Paste Destination:=Worksheets("Swings").Cells(erow + 1, 4)
Worksheets("Products").Cells(i, 8).Copy
Worksheets("Products").Paste Destination:=Worksheets("Swings").Cells(erow + 1, 5)
End If
Next i
Application.ScreenUpdating = True
End Sub