I use a worksheet to record my weekly Solar Panel readings. I input the reading onto the worksheet using a Userforms Textbox to add the value to a Named cell "NewReading".
When inputted, the “NewReading” value is simply checked against the named cell above, named "OldReading", to ensure it is a greater value, with a simply error message if not.
e.g. If Range("NewReading").Value <= Range("OldReading").Value Then GoTo TooSmall
If I’m not able to input the reading on the correct day, (Holidays etc) I indicate the reading was “Estimated” by adding an “ E” at the end. This is added to the reading by ticking a Checkbox on the same Userform.
E.g. Range("NewReading") = Range("NewReading").Value & " E"
The trouble I have now is that when trying to add further readings, below the Estimated reading, it show an error because the OldReading.Value now has the “ E” on the end and won’t allow me to proceed.
Can anyone offer a way of getting the NewReading to be checked against the OldReading, without firing the Error message?
When inputted, the “NewReading” value is simply checked against the named cell above, named "OldReading", to ensure it is a greater value, with a simply error message if not.
e.g. If Range("NewReading").Value <= Range("OldReading").Value Then GoTo TooSmall
If I’m not able to input the reading on the correct day, (Holidays etc) I indicate the reading was “Estimated” by adding an “ E” at the end. This is added to the reading by ticking a Checkbox on the same Userform.
E.g. Range("NewReading") = Range("NewReading").Value & " E"
The trouble I have now is that when trying to add further readings, below the Estimated reading, it show an error because the OldReading.Value now has the “ E” on the end and won’t allow me to proceed.
Can anyone offer a way of getting the NewReading to be checked against the OldReading, without firing the Error message?