Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
What do i wrong here
Excel is assuming that in the first case the textboxes are numbers sinc
you are subtracting them. In the second case, it assumes they are tex (because the + sign can be used to concatenate text strings) so it i concatenating. Change the code to: flydiff = (CDbl(TextBox7.Value) + CDbl(TextBox10.Value)) where CDbl converts to a double floating point variable type. -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
help please what am i doing wrong? | Excel Discussion (Misc queries) | |||
What's wrong in this Eqn? | Excel Worksheet Functions | |||
Insert Calculated Field (wrong Qty*Price = wrong Amount) | Excel Discussion (Misc queries) | |||
What am I doing wrong? | New Users to Excel | |||
What am I doing wrong? | Excel Discussion (Misc queries) |