Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default UserForm and TextBox Arithmetic

I have 3 TextBox on an UserForm: TextBoxTotal, TextBoxA, and TextBoxB
On the UserForm I have the associated VBA code:
TextBoxTotal.Vallue = TextBoxA.Value + TextBoxB.Value.
I cannot get the arithmetic sum. However, I get the logical union
How do I get the arithmetic sum using operations on TextBox's?
--
Tomo
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default UserForm and TextBox Arithmetic

Tomo,

Something like

TextBoxTotal.Text = cStr(cdbl(TextBoxA.Text)+cdbl(TextBoxB.Text))

Robin Hammond
www.enhanceddatasystems.com

"t_hayata" wrote in message
...
I have 3 TextBox on an UserForm: TextBoxTotal, TextBoxA, and TextBoxB
On the UserForm I have the associated VBA code:
TextBoxTotal.Vallue = TextBoxA.Value + TextBoxB.Value.
I cannot get the arithmetic sum. However, I get the logical union
How do I get the arithmetic sum using operations on TextBox's?
--
Tomo



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TEXTBOX in USERFORM RUUD VAN DEURSEN Excel Programming 5 March 1st 05 03:36 PM
userform textbox Phil Excel Worksheet Functions 5 January 16th 05 06:59 PM
Textbox in userform Harald Staff Excel Programming 0 September 8th 04 11:51 AM
Textbox in userform shaharul[_6_] Excel Programming 3 April 15th 04 12:54 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"