Another quick post on validating a form using the String Validator, Number Validator, Zip Code Validator and Validator classes. Not sure if this is the best method, but I used the Number Validator to validate that a Combo Box has a valid selection (the selected Index property was equal to or greater than 0), and I used a combination of String Validator and Zip Code Validator to make sure that the user enters a US Zip+4 zip code.
Here is an example: When an input box displays, it presents a request to the user who can then provide a value.
After using the input box, the user can change his or her mind and press Esc or click Cancel.
If the user provided a value and want to acknowledge it, he or she can click OK or press Enter.
This would transfer the contents of the text box to the application that displayed the input box.
Public Function Input Box( _ By Val Prompt As String, _ Optional By Val Title As String = "", _ Optional By Val Default Response As String = "", _ Optional By Val Xpos As Integer = -1, _ Optional By Val YPos As Integer = -1 _ ) As String This would produce When calling the Input Box() function, if you pass only the first argument, the input box would display the name of the application in the title bar.