I am attempting a For Each loop using the below code.
Sub child_builder()
Dim cell As Range
For Each cell In ActiveSheet.Range("D5:D102")
    If cell.Value = "Y" Then
        cell.Activate
        Selection.Offset(0, -2).Select
        Selection.Copy
        Sheets("Child").Select
        ActiveSheet.Paste
        Selection.Offset(0, 1).Select
        ThisWorkbook.Sheets("Product Builder").Activate
        Range("G6:I10").Select
        Selection.Copy
        Sheets("Child").Select
        ActiveSheet.Paste
        Selection.End(xlDown).Select
        Selection.Offset(1, -1).Select
    End If
Next cell
End Sub
The first loop works but then fails on the next one due to the line cell.activate.
The error is
Run-time error '1004': Activate method of Range class failed.
 
     
    