LozLaura17
asked on
Validating A textbox in a UserForm
I have created a User Form that will allow you to enter and search details. It will then enter these details into a spreadsheet via a save button. There are three things I would then Like to do
1. I would like to be able to update details rather than have to press save each time and get a new line
2. I would like to be able to search and delete a file rather than having to search and manually delete
3. Finally I have two text fields that allow information to be entered into them but I also before allowing me to press the save button i need the to validate the field to check that the same information has not already been entered
My Userform has 11 fields (A-K)
A Text Field (This is used to search) This needs to be validated to only allow non duplicate information to be entered
B Text Field (This is used to search) This needs to be validated to only allow non duplicate information to be entered
c Combo Box
d Combo Box
e Option Buttons
f Text Box
g Option Button
h Option Button
i Option Button
j Combo box
k Combo box
1. I would like to be able to update details rather than have to press save each time and get a new line
2. I would like to be able to search and delete a file rather than having to search and manually delete
3. Finally I have two text fields that allow information to be entered into them but I also before allowing me to press the save button i need the to validate the field to check that the same information has not already been entered
My Userform has 11 fields (A-K)
A Text Field (This is used to search) This needs to be validated to only allow non duplicate information to be entered
B Text Field (This is used to search) This needs to be validated to only allow non duplicate information to be entered
c Combo Box
d Combo Box
e Option Buttons
f Text Box
g Option Button
h Option Button
i Option Button
j Combo box
k Combo box
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The only thing I can think of with regards to not duplicationg searches is to use a combobox and there is an option in the propertys that will not allow duplicate values to be in there :) Not sure if that helps you any ?
hi LozLaura17 have you tried my code. I actually made the search and save capabilities working in there
ASKER