Sub Auto_Open()
Application.Onkey "0", "Khong"
Application.Onkey "1", "Mot"
Application.Onkey "2", "Hai"
Application.Onkey "3", "Ba"
Application.Onkey "4", "Bon"
Application.Onkey "5", "Nam"
Application.Onkey "6", "Sau"
Application.Onkey "7", "Bay"
Application.Onkey "8", "Tam"
Application.Onkey "9", "Chin"
Application.Onkey "m", "Muoi"
End Sub
Sub Auto_Close()
Application.Onkey "0"
Application.Onkey "1"
Application.Onkey "2"
Application.Onkey "3"
Application.Onkey "4"
Application.Onkey "5"
Application.Onkey "6"
Application.Onkey "7"
Application.Onkey "8"
Application.Onkey "9"
Application.Onkey "m"
End Sub
Sub Khong()
ActiveCell.Value = 0
r = ActiveCell.Row
c = ActiveCell.Column
NhapDiem r, c
End Sub
Sub Mot()
ActiveCell.Value = 1
r = ActiveCell.Row
c = ActiveCell.Column
NhapDiem r, c
End Sub
Sub Hai()
ActiveCell.Value = 2
r = ActiveCell.Row
c = ActiveCell.Column
NhapDiem r, c
End Sub
Sub Ba()
ActiveCell.Value = 3
r = ActiveCell.Row
c = ActiveCell.Column
NhapDiem r, c
End Sub
Sub Bon()
ActiveCell.Value = 4
r = ActiveCell.Row
c = ActiveCell.Column
NhapDiem r, c
End Sub
Sub Nam()
ActiveCell.Value = 5
r = ActiveCell.Row
c = ActiveCell.Column
NhapDiem r, c
End Sub
Sub Sau()
ActiveCell.Value = 6
r = ActiveCell.Row
c = ActiveCell.Column
NhapDiem r, c
End Sub
Sub Bay()
ActiveCell.Value = 7
r = ActiveCell.Row
c = ActiveCell.Column
NhapDiem r, c
End Sub
Sub Tam()
ActiveCell.Value = 8
r = ActiveCell.Row
c = ActiveCell.Column
NhapDiem r, c
End Sub
Sub Chin()
ActiveCell.Value = 9
r = ActiveCell.Row
c = ActiveCell.Column
NhapDiem r, c
End Sub
Sub Muoi()
ActiveCell.Value = 10
r = ActiveCell.Row
c = ActiveCell.Column
NhapDiem r, c
End Sub
Sub NhapDiem(r, c)
c1 = Selection.Column
c2 = Selection.Columns.Count + c1 - 1
If c < c2 Then
Cells(r, c + 1).Activate
ElseIf c = c2 Then
Cells(r + 1, c1).Activate
End If
End Sub