Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
calculate textboxvalues
Hi,
I'm trying to calculate 3 textboxevalues into one, but they don't add up as the should. UserForm1.TextBox5.Value = UserForm1.TextBox2.Value + UserForm1.TextBox3.Value + UserForm1.TextBox4.Value Why doesn't this work? Or does anyone knows a better way? greetings |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
calculate textboxvalues
UserForm1.TextBox5.Value = Val(UserForm1.TextBox2.Value) + _
val(UserForm1.TextBox3.Value) + Val(UserForm1.TextBox4.Value) the plus sign can be used for concatenation when used with strings and values stored in textboxes are strings. -- Regards, Tom Ogilvy "Peterke" wrote in message ... Hi, I'm trying to calculate 3 textboxevalues into one, but they don't add up as the should. UserForm1.TextBox5.Value = UserForm1.TextBox2.Value + UserForm1.TextBox3.Value + UserForm1.TextBox4.Value Why doesn't this work? Or does anyone knows a better way? greetings |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
calculate time does not calculate | Excel Discussion (Misc queries) | |||
self calculate | Excel Discussion (Misc queries) | |||
only calculate if 100 | Excel Worksheet Functions | |||
how do I calculate a mean | Excel Programming | |||
Macro that hide or unhide and not calculate or calculate | Excel Programming |