Sub fz() Dim b, c, d, i, j, arr arr = Sheets("a").UsedRange Z = Sheets("a").Range("e65536").End(xlUp).Row For i = 1 To Z j = 5 b = Sheets("a").Cells(i + 1, j) Sheets("b").Activate For c = 1 To b Sheets("b").Cells(d + 1, 1) = arr(i + 1, 1) Sheets("b").Cells(d + 1, 2) = arr(i + 1, 2) Sheets("b").Cells(d + 1, 3) = arr(i + 1, 3) Sheets("b").Cells(d + 1, 4) = arr(i + 1, 4) d = d + 1 Next c Next i End Sub