energman58
Well-known Member
- Joined
- Oct 25, 2010
- Messages
- 553
Hello excellers,
In my model allowable data in a cell is blank, zero or any positive number. I can use data validation to make sure that this is the case - no problem. However, blank and zero are not treated the same in the model - blank effectively says "no restriction" and allows the model freedom to set this value whereas zero says the value of this parameter must be zero (in practice any number including zero sets the maximum value for the parameter and negative numbers are not allowed). Therefore I want to make sure that when someone enters zero they really do mean zero and not blank.
What I would ideally like to do is use data validation to make sure they enter an allowable value but in the case they enter a zero pop up a warning saying "Do you really mean zero here?" (blank is kind of the default condition so I am not too worried about folk entering a blank when they mean zero). I can do this with VBA but as there are many places (thousands) in the model where they can make this mistake it is going to be a real pain implementing it using WorksheetChange event compared to a data validation solution if this is possible.
All suggestions (very) gratefully received!
In my model allowable data in a cell is blank, zero or any positive number. I can use data validation to make sure that this is the case - no problem. However, blank and zero are not treated the same in the model - blank effectively says "no restriction" and allows the model freedom to set this value whereas zero says the value of this parameter must be zero (in practice any number including zero sets the maximum value for the parameter and negative numbers are not allowed). Therefore I want to make sure that when someone enters zero they really do mean zero and not blank.
What I would ideally like to do is use data validation to make sure they enter an allowable value but in the case they enter a zero pop up a warning saying "Do you really mean zero here?" (blank is kind of the default condition so I am not too worried about folk entering a blank when they mean zero). I can do this with VBA but as there are many places (thousands) in the model where they can make this mistake it is going to be a real pain implementing it using WorksheetChange event compared to a data validation solution if this is possible.
All suggestions (very) gratefully received!