Word 2007 VBA validation of formfield
I have a Word 2007 form that I am trying to do two things with.
First, I have 11 exam site choices with text boxes. I want the user to give me the order of their top three choices of where they want to test. I want to validate it so that they can only give me choices 1-3 (in other words, not give me two #1 choices) and not allow them to choose more than 3.
Second, I need to validate the data in the formfields. If the formfield is invalid, I want to set the focus back on the formfield that is in error. Like the validation for the first item above, if they enter a '4' in the text box, I want to display a message box that tells them they can only choose up to 3 (I have this part working). I want the focus to be set back to this field so they have to try again.
Thanks for any help,
Beth Harless
|