Seemed like we were on the right path, and still suspect so, but something awful weird is going on. You will notice in the following I have stuck in a number of extra steps in that I am trying to disect the problem:
What is happening is that at first the proper figure is displayed - let us say 17.00%, which is drawn from a cell formatted as % whose underlying value is .17, just in case that comes into play in the problem and I don't know it - I do find it strange though that instead of bringing in .17 as a number, it is bringing it over as a formattted string, and the formatted string is "17" (a whole number - not a decimal).
Then when I change it over to 17.5 in the text box on the form a change event is again triggered and I get a type mismatch error. I checked out what Me.tb_r_11.Value is equal to, and more importantly it IS a string, being "17.50%", however and nonetheless, Excel is barfing it back to me claiming a mismatch this time when I try to get the Val of it, but it would not be running that section if it were not a string which is how it was run the first time when bringing it in from the cell, so what the heck???
Bookmarks