VBAmalta89
Board Regular
- Joined
- Mar 25, 2011
- Messages
- 116
I have a user form which consists of a drop box and 3 text boxes.
As a sort of data validation when clicking the OK button on the user form I need the following:
If the user selects an item from the drop box then each of the text boxes must be filled with a value, otherwise a message is prompted when pressing OK and doesnt allow the user to continue.
(The drop boxes and text boxes are within a frame - dont know if that makes a difference)
How can i code this as I'm new to VBA and having trouble doing this?
As a sort of data validation when clicking the OK button on the user form I need the following:
If the user selects an item from the drop box then each of the text boxes must be filled with a value, otherwise a message is prompted when pressing OK and doesnt allow the user to continue.
(The drop boxes and text boxes are within a frame - dont know if that makes a difference)
How can i code this as I'm new to VBA and having trouble doing this?