This is part of my formula. So it's a box I click on... I enter Supplier name, department, and information of the supplier first... and then eventually ITEM# or SKU# Now, what I added was in between END IF and END in RED. Because I didn't want to have duplicate item numbers in my system. What it does is that it looks up to see if the same SKU# exists in the product page sheet... if it does, I return a value 1 otherwise 0. If it's 0, it means there's no duplicates, which then goes on prompting for other information such as price etc... BUT, if it does have duplicate, a message pops up saying duplicate, SKU and then only option is O.K. and it kicks you out to start over again.... but the problem is, that the supplier information entered before has to be re-entered again... it's possible to have multiple items from same supplier, so it's a bit frustrating to start all over again.... so, what I would like is that if it find a duplicate SKU, it tells you, but let's you correct it or change the number. Something like... Duplicate SKU, try again...
Is that possible please?
Reply = InputBox(Prompt:="ITEM SKU", _
Title:="ITEM SKU", Default:="")
If Reply = vbNullString Then
Else
ActiveSheet.Range("AA11").Value = Reply
End If
If ActiveSheet.Range("aa14").Value = 0 Then
ActiveSheet.Range("aa11").Value = ID
Else
MsgBox "DUPLICATE ITEM NUMBER"
End
End If
Reply = InputBox(Prompt:="DESCRIBE THE PRODUCT", _
Title:="PRODUCT DESCRIPTION", Default:="")
If Reply = vbNullString Then
Else
ActiveSheet.Range("AB11").Value = Reply
End If
Reply = InputBox(Prompt:="SUGGESTED SELLING PRICE", _
Title:="PRICE", Default:="")
If Reply = vbNullString Then
Else
ActiveSheet.Range("AC11").Value = Reply
Is that possible please?
Reply = InputBox(Prompt:="ITEM SKU", _
Title:="ITEM SKU", Default:="")
If Reply = vbNullString Then
Else
ActiveSheet.Range("AA11").Value = Reply
End If
If ActiveSheet.Range("aa14").Value = 0 Then
ActiveSheet.Range("aa11").Value = ID
Else
MsgBox "DUPLICATE ITEM NUMBER"
End
End If
Reply = InputBox(Prompt:="DESCRIBE THE PRODUCT", _
Title:="PRODUCT DESCRIPTION", Default:="")
If Reply = vbNullString Then
Else
ActiveSheet.Range("AB11").Value = Reply
End If
Reply = InputBox(Prompt:="SUGGESTED SELLING PRICE", _
Title:="PRICE", Default:="")
If Reply = vbNullString Then
Else
ActiveSheet.Range("AC11").Value = Reply