I have a form with (literally) HUNDREDS of entry fields. I've programmed the form with a standard naming convention, so all input fields are of the form:
txt_R_Description_## (for text boxes)
chk_R_Description_## (for check boxes)
Description is of varying length, as is ## (though ## is limited to either 1 or 2 characters)
The form is tabular with five columns. Essentially, I would like to disable and shade all cells for a given column on certain events happening, such as the user indicating in another cell that s/he has no data for that particular column. Rather than going through them one by one with the code:
. . . which is incredibly tedious, does Excel VBA support wildcards and, if so, how do I use them? I know replacing "Desc1" with "*" won't work.
Thanks in advance!
txt_R_Description_## (for text boxes)
chk_R_Description_## (for check boxes)
Description is of varying length, as is ## (though ## is limited to either 1 or 2 characters)
The form is tabular with five columns. Essentially, I would like to disable and shade all cells for a given column on certain events happening, such as the user indicating in another cell that s/he has no data for that particular column. Rather than going through them one by one with the code:
Code:
txt_R_Desc1_01.Enabled = False
txt_R_Desc1_01.BackColor = &H8000000F
txt_R_Desc2_01.Enabled = False
txt_R_Desc2_01.BackColor = &H8000000F
. . . which is incredibly tedious, does Excel VBA support wildcards and, if so, how do I use them? I know replacing "Desc1" with "*" won't work.
Thanks in advance!