Sub CopyHidden()
Dim LastRow As Integer
Dim NextRow As Integer
Dim Dest As Worksheet
Set Dest = Worksheets("Sheet2") 'This is where you want your rows copied to.
LastRow = ActiveSheet.Range("A50000").End(xlUp).Row 'Assuming there is data in ColA. If not change A to a Col that has data in your table.
For r = LastRow To 1 Step -1
If ActiveSheet.Cells(r, 1).EntireRow.Hidden = True Then
NextRow = Dest.Range("A50000").End(xlUp).Offset(1, 0).Row 'Again assumes your destination worksheet has data in ColA. If not change A to a Col that has data in your table.
Dest.Cells(NextRow, 1).EntireRow.Value = ActiveSheet.Cells(r, 1).EntireRow.Value
ActiveSheet.Cells(r, 1).EntireRow.Delete
End If
Next
End Sub