Professional Documents
Culture Documents
Dim sh As Worksheet
Set sh = ThisWorkbook.Sheets("MasterList")
If Application.WorksheetFunction.CountIf(sh.Range("B:B"), Me.txtitem.Value) > 0
Then
MsgBox "This Product is already available in product Master List", vbCritical
Exit Sub
End If
Dim lr As Integer
lr = Application.WorksheetFunction.CountA(sh.Range("A:A"))
Me.txtitem.Value = ""
Me.txtorder.Value = ""
Me.txtsale.Value = ""