[B]Private Sub CommandButton1_Click()[/B]
Sheets("Sheet2").Select
Sheets("Sheet2").Range("A1:B2").Select
Selection.Copy
Sheets("Sheet3").Select
Sheets("Sheet3").Range("C1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Sheets("Sheet1").Select
Sheets("Sheet1").Range("A7").Select
[B]End Sub[/B]
Sub Macro1()
With Sheets("Sheet2")
.Range("A1:B2").Copy Destination:=Sheets("Sheet3").Range("C1")
End With
Range("A9").Select
End Sub
Nhờ các bạn xem file và giúp sửa lỗi code , cám ơn nhiều
Private Sub CommandButton1_Click()
Sheets("Sheet2").Select
.Range("A1:B2").Select
Selection.Copy
Sheets("Sheet3").Select
Range("C1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Sheet1").Select
Range("A7").Select
End Sub
Sheets("Sheet2").Select
.Range("A1:B2").Select
Sheets("Sheet2").Select
Sheets("Sheet2").Range("A1:B2").Select