Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a user form that has three text boxes along with an OK command and a
Cancel command. The first textbox is an employee ID number, the next two are dates. The Employee ID is entered and then a VLOOKUP formula goes to another worksheet and finds the employee name and other data. If it doesn't find a name I have written into the formula to enter "Invalid Employee Number" in the cell. Here is the situation: If an invalid employee number is entered and the user doesn't notice bofore clicking OK, the "invalid" data is copied to another hidden worksheet and it is just a sheet of errors since the employee number wasn't valid. OR If the user enters a valid number, but doesn't notice until he/she hits OK that the wrong employee number was entered, then that wrong employee data is copied to the hidden worksheet. What is the best way to prevent either of these from getting copied before the user is certain the correct employee number is entered? I attempted to create a MsgBox at the first Input box asking "Is this the Correct Employee Number?". However the message box appeared after a single digit was entered. For example if the employee number is 1554, the message box popped up when you type 1, not at the end of typing 1554. What do you experts suggest???? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Disable spreadsheet when copied to incorrect file path or differen ip address | Excel Discussion (Misc queries) | |||
Preventing data input until a particular cell is used | Excel Worksheet Functions | |||
Preventing Data Import | Excel Discussion (Misc queries) | |||
Preventing duplicate data | Excel Discussion (Misc queries) | |||
Preventing a workbook from being copied | Excel Programming |