Dim rg As Range
Dim rg1 As Range
Dim n As Integer
Set rg = ws1.[a1]
Set rg1 = ws2.[a1]
Do Until IsEmpty(rg)
n = rg.Offset(0, 1).Value
ws2.Range(rg1, rg1.Offset((n - 1), 0)) = rg
Set rg = rg.Offset(1, 0)
Set rg1 = rg1.Offset(n, 0)
Loop
End Sub
[attach]22772[/attach]