Hi,
I have a cell "A1" where you are only allowed to type a number which can be divided by "1,5"
I am using a 'helping cell' A2 where I use the formula
This will give A2 the value 0 whenever A1 can be divided by 0.
So far, so good..
Then the problem starts:
A1 is being controlled by a UserForm TextInput.
I have set TextInput.ControlSource to A1
When the user is changing the value of TextInput, and A2 <> 0 then a loop is starting.
Cell A1 is supposed to decrease with 0,1 until A2 = 0
Here is the code:
I set a break point inside the loop to see what is going on:
A1 is set to for example 1,7
A2 become 0,2
A1 is then corrected to 1,6
A2 become 0,1
A1 is corrected to 1,5
Now A2 SHOULD become 0, and the loop should exit
A2 becomes -2,22E-16 (!!!)
I don't understand this!
Do you?
Help is very much appreciated
Bookmarks