ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding values in textboxes? (https://www.excelbanter.com/excel-programming/305180-re-adding-values-textboxes.html)

Bob Phillips[_7_]

Adding values in textboxes?
 
You must be using & to add them. Try using +

--
HTH

-------

Bob Phillips
"Gary Phillips" wrote in message
...
Okay, stupid question.

I have 4 textboxes... three of them are enabled so the user can enter an

integer value in each of them.

The 4th one is disabled, it will display the total of the 3 values the

user enters.

So on the txtOption01_Change(), txtOption02_Change(), and

txtOption03_Change() event I want it to add those values together and
display their total in the 4th textbox.

The way it happens now is like this...

txtOption01 = 5
txtOption02 = 5
txtOption03 = 5
txtOption04 = 555

I even tried converting it to Int but that doesn't work.

txtOption04.Value = CInt(myInt)

Is that right?





All times are GMT +1. The time now is 11:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com