I am fairly new to VBA.
VBA selectes 3 rows, but only count 1? I could not find a similar case, which I could understand.
I could not paste the whole code, as stackoverflow does not allow that kind of post.
Code underneath.
For i = 39 To lastRow
    ' Look for identical rows as input
    If Cells(i, 3) = Range("C29") And Cells(i, 4) = Range("D29") And Cells(i, 5) = Range("E29") And Cells(i, 6) = Range("F29") And Cells(i, 7) = Range("G29") And Range("H29") = Cells(i, 8) Then
        If foundRange Is Nothing Then
                'Defines the first row as foundrange, if nothing found earlier
                Set foundRange = Range(Cells(i, 3), Cells(i, 8))
        Else
            'Adds rows to foundRange, if one (or more) rows are found
            Set foundRange = Union(foundRange, Cells(i, 3), Cells(i, 4), Cells(i, 5), Cells(i, 6), Cells(i, 7), Cells(i, 8))
    End If
End If
Next i
If foundRange Is Nothing Then
    MsgBox "No rows found acording to input"
Else
'Count amount of rows to be removed
foundRange.Rows.Select
MsgBox selection.Rows.Count
 
    