Hello Panic,
This version of your file has 2 macros. One macro loads a control array that has the names of the Text Boxes and the Labels associated with them. The second macro will validate the entries using the control array. It will set focus to the first empty text box and change the label caption color to red.
You will need to expand the control array. There is one array for the text boxes and another array for the labels. These are combined to make the control array whose dimensions are 2, n. The first subscript (0, n) holds the name of the text box, and the second subscript(1, n) holds the name of the label for that text box. I have marked the code in red.
Module Code
Macro Module Code
Sincerely,
Leith Ross
Bookmarks