Các anh/chị/em cho hỏi code này sai ở đâu ạ. Em gõ lại theo sách mà k phát hiện ra ạ
Sub thuoc_tinh_address()
Set Range1 = Worksheets("Sheet1").Cells(1, 1)
MsgBox Range1.Address()
MsgBox Range1.Address(RowAbsolute:=False)
MsgBox Range1.Address(ReferenceStyle:=xlR1C1)
MsgBox Range1.Address(ReferenceStyle:=xlR1C1, RowAbsolute:=False, ColumnAbsolute:=False, RelativeTo:=Worksheets(1).Cell(3, 3))
End Sub
Sub thuoc_tinh_address()
Set Range1 = Worksheets("Sheet1").Cells(1, 1)
MsgBox Range1.Address()
MsgBox Range1.Address(RowAbsolute:=False)
MsgBox Range1.Address(ReferenceStyle:=xlR1C1)
MsgBox Range1.Address(ReferenceStyle:=xlR1C1, RowAbsolute:=False, ColumnAbsolute:=False, RelativeTo:=Worksheets(1).Cell(3, 3))
End Sub