Sub chon_1_cell_da_biet()
Range("B1").Select
MsgBox Selection.Address(0, 0) & " is selected"
[B1].Select
MsgBox Selection.Address(0, 0) & " is selected"
Cells(1, 2).Select
MsgBox Selection.Address(0, 0) & " is selected"
Range("B" & 1).Select
MsgBox Selection.Address(0, 0) & " is selected"
Cells(1, "B").Select
MsgBox Selection.Address(0, 0) & " is selected"
End Sub
Sub Select_Cell_Range_Row_Column()
Range("B1:B5").Select
MsgBox Selection.Address(0, 0) & " is selected"
[B1:B5].Select
MsgBox Selection.Address(0, 0) & " is selected"
Range("B1:B" & 5).Select
MsgBox Selection.Address(0, 0) & " is selected"
Range("B" & 1 & ":B5").Select
MsgBox Selection.Address(0, 0) & " is selected"
Range("B1:B5,D3:D10").Select
MsgBox Selection.Address(0, 0) & " is selected"
Range("C:C").Select
MsgBox Selection.Address(0, 0) & " is selected"
Range("C:F").Select
MsgBox Selection.Address(0, 0) & " is selected"
Range("C:C,E:E,G:G").Select
MsgBox Selection.Address(0, 0) & " is selected"
Range("3:3").Select
MsgBox Selection.Address(0, 0) & " is selected"
Range("3:5").Select
MsgBox Selection.Address(0, 0) & " is selected"
Range("3:3, 5:5").Select
MsgBox Selection.Address(0, 0) & " is selected"
Columns(4).Select
MsgBox Selection.Address(0, 0) & " is selected"
Rows(4).Select
MsgBox Selection.Address(0, 0) & " is selected"
Columns("A").Select
MsgBox Selection.Address(0, 0) & " is selected"
Columns("A:C").Select
MsgBox Selection.Address(0, 0) & " is selected"
Columns(3).Select
MsgBox Selection.Address(0, 0) & " is selected"
End Sub
Sub chon_nhieu_vung()
Union([A1:C2], [D7:D10], [G1:G10], [I3]).Select
MsgBox Selection.Address(0, 0) & " is selected"
End Sub