Continuing on from original post 247933 : Via a userform I have created a number of textboxes that users type percentage values into (these values are then summed, on the assumption that they will only be numbers). Thanks to HansV this part is working very well.
Now users would like the option to display ‘<1' in those textboxes where the value is less than one percent but I am unsure how to let the code know that the values that are not text that they must be ignored in the final count. At present, whilst the user is filling in entries, there is a display of the current count on the userform. If they exceed 100% a dialog box announces the fact.
To simplify data entry, I have placed an option button adjacent to the textbox and when chosen, the text '<1' appears where a number would have gone. The attachment shows the three possible states.
1. <1 and the option button selected.
2. 14 and the option button not selected.
3. 00 (no value entered) and the option button not selected.
I am not clear on how to sum values when some textboxes can contain text (how to ignore those textbox values that are not numbers).
Any pointers will be much appreciated.