Checking some values in Workbook
How will you initiate the checks. Normally it would be clicking a button,
such as the OK button, then just look at each value and test it. If they are
okay, write them away, else throw up an error message.
Select Case might be a strategy, but there is too little info to advise.
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"Gert-Jan" wrote in message
.. .
I have a userform with some texboxes and comboboxes. If the user types or
select something, that data will be written to cells. (Sheet1A1,
Sheet2B15,
Sheet3K29, etc.)
That input must be checked before it can be stored in the database. If the
cells doesn't contain proper data, the commandbutton1 must be disabled. I
would like to know how create a macro that checks all these specific
cells.
Should I use select case?
Thanks for helping, Gert-Jan
|