phamvandunghp84
Thành viên thường trực
- Tham gia
- 5/3/20
- Bài viết
- 241
- Được thích
- 12
code này đang báo lỗi, Nhờ các bạn trên diễn đàn giúp mình code này phải sửa lại như nào mới chạy được? ( mình muốn chọn vùng dữ liệu từ ô A101 tới ô E cuối của sheet4 rồi dán vào cuối của cột A sheet data
Sub LocTrung03()
Dim lastRow As Long
Sheet4.Activate
With ActiveSheet
lastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
End With
Sheet4.[A101;"E&lastRow].Copy Destination:=Sheets("data").[A65000].End(xlUp).Offset(1, 0)
End Sub
Sub LocTrung03()
Dim lastRow As Long
Sheet4.Activate
With ActiveSheet
lastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
End With
Sheet4.[A101;"E&lastRow].Copy Destination:=Sheets("data").[A65000].End(xlUp).Offset(1, 0)
End Sub