Private Sub CommandButton1_Click()
Dim Rg As Range, Rg2 As Range, i, k
Do
Set Rg = Application.InputBox("Chon vung chep", , , , , , , 8)
If Not Rg Is Nothing Then Exit Do
Loop
Do
Set Rg2 = Application.InputBox("Chon o dich", , , , , , , 8)
If Rg2.Count = 1 Then Exit Do
Loop
k = InputBox("Nhap so dong lap lai")
For i = 1 To Rg.Count
Rg2.Resize(k).Value = Rg.Cells(i).Value
Set Rg2 = Rg2.Offset(k)
Next
End Sub
Có thể dùng:sealand đã viết:Bạn thử với cách này xem, mình tạm với 10 dòng liên tiếp bạn điều chỉnh theo ý nha
=OFFSET($A$1;ROUNDDOWN((ROW(1:1)-0,1)/10;0);0)