nqhungonline
Thành viên mới
- Tham gia
- 29/5/08
- Bài viết
- 3
- Được thích
- 0
Option Explicit
Sub CopyDown()
Dim eRw As Long, BDau As Long, Cuoi As Long
Dim Clls As Range
eRw = [b65500].End(xlUp).Row + 5: Cuoi = 2
Do
BDau = Cuoi + 1
Set Clls = Cells(BDau, "A").Resize(, 7)
Cuoi = Cells(BDau, "B").End(xlDown).Row - 1
If Cuoi > 65500 Then Cuoi = eRw
Cells(BDau + 1, "A").Resize(Cuoi - BDau, 7).Value = Clls.Value
If Cuoi = eRw Then Exit Do
Loop
End Sub