Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Using Equations to Fill in TextBox

I have a form for data entry with one field in particular that I want
auto-populated based on values throughout this form. To get this value, I use
the Enter event in the textbox, but I keep getting Type Mismatch errors when
I do txt1.value-txt2.value and so on. Can I sum values from text boxes?
--
I am running on Office 2003, unless otherwise stated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Using Equations to Fill in TextBox

Yes, but the values have to be numeric.
A textbox contains text. <g
Try...

CDbl(txt1.Value) + Val(txt2.Value)

Either CDbl or Val should work.
--
Jim Cone
Portland, Oregon USA



"Orion Cochrane"

wrote in message
I have a form for data entry with one field in particular that I want
auto-populated based on values throughout this form. To get this value, I use
the Enter event in the textbox, but I keep getting Type Mismatch errors when
I do txt1.value-txt2.value and so on. Can I sum values from text boxes?
--
I am running on Office 2003, unless otherwise stated.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Using Equations to Fill in TextBox


That worked beautifully. Thanks.
--
I am running on Office 2003, unless otherwise stated.


"Jim Cone" wrote:

Yes, but the values have to be numeric.
A textbox contains text. <g
Try...

CDbl(txt1.Value) + Val(txt2.Value)

Either CDbl or Val should work.
--
Jim Cone
Portland, Oregon USA



"Orion Cochrane"

wrote in message
I have a form for data entry with one field in particular that I want
auto-populated based on values throughout this form. To get this value, I use
the Enter event in the textbox, but I keep getting Type Mismatch errors when
I do txt1.value-txt2.value and so on. Can I sum values from text boxes?
--
I am running on Office 2003, unless otherwise stated.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Using Equations to Fill in TextBox


You are welcome and thanks for the update.
'--
Jim Cone




"Orion Cochrane"

wrote in message
That worked beautifully. Thanks.
--
I am running on Office 2003, unless otherwise stated.




"Jim Cone" wrote:
Yes, but the values have to be numeric.
A textbox contains text. <g
Try...
CDbl(txt1.Value) + Val(txt2.Value)
Either CDbl or Val should work.
--
Jim Cone
Portland, Oregon USA







"Orion Cochrane"

wrote in message
I have a form for data entry with one field in particular that I want
auto-populated based on values throughout this form. To get this value, I use
the Enter event in the textbox, but I keep getting Type Mismatch errors when
I do txt1.value-txt2.value and so on. Can I sum values from text boxes?
--
I am running on Office 2003, unless otherwise stated.

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
Auto Fill Equations in VBA CSUS_CE_Student[_2_] Excel Programming 5 May 18th 09 09:15 PM
fill userform textbox from userform listbox clik event GregJG[_21_] Excel Programming 3 December 7th 08 04:47 PM
using a map to fill in a textbox Gideon New Users to Excel 4 May 13th 08 04:15 AM
Match TextBox Back Color to Cell Fill Color AMY Z. Excel Programming 4 October 12th 06 06:07 PM
Fill Textbox from cell V. Roe Excel Programming 3 July 27th 05 08:30 PM


All times are GMT +1. The time now is 05:30 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"