Private Sub NhapSoLieu_Click()
If TENNHACC = "" Then
MsgBox "còn de trong ten nha cung cap!!", vbCritical, "Thong bao"
Exit Sub
End If
If Val(Soluong) = 0 Then
MsgBox "de trong so tien!", vbCritical, "Thong bao"
Exit Sub
End If
Dim Rng As Range
Set Rng = Sheet1.[A65536].End(xlUp).Offset(1)
Rng.Value = Me.NgayNHAP
Rng.Offset(, 1) = SoHD
Rng.Offset(, 2) = NgayCT
Rng.Offset(, 3) = soct
Rng.Offset(, 4) = soct
Rng.Offset(, 5) = TENNHACC
Rng.Offset(, 6) = WH
Rng.Offset(, 7) = mahang
Rng.Offset(, 8) = tenhang
Rng.Offset(, 9) = tenDVT
Rng.Offset(, 10) = XSLUONG * 1
Rng.Offset(, 11) = DonGia * 1
Rng.Offset(, 12) = Thanhtien * 1
Rng.Offset(, 13) = SoPO
Rng.Offset(, 14) = GhiChu
Soluong = "": WH = "": SoPO = "": DonGia = "": GhiChu = ""
mahang = "": tenhang = "": tenDVT = ""
Me.NgayNHAP.SetFocus
End Sub