On a user form i'm trying to verify that the entered part number in the text box "txtPartNo" doesn't already exist in a seperate workbook (Column F holds the part number). If the entered part number does exist then i display a message via msg box that a record does exist and it then references the specific planning number via the dpti variable (the planning number is in column A) in the same message box, we would then exit the sub and user form.
If no record of the part number exists in the seperate workbook then we can continue entering the remainder of the user form info.
When i enter a part number in the text box upon enter i immediately receive a "run time error 13", Type mismatch, not sure what i'm doing wrong, anyone have a suggestion?
At the end of the day I'm just trying to ensure that we don't have duplicate part numbers in the workbook.
Please Login or Register to view this content.
Bookmarks