LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Need help adding formatted textboxes

Hello all,
I am pretty much a rookie but thanks to all of the great resources in
this site I am progessing even if slowly. I am using excel 2003 SP2.
I would like to have three formatted text boxes add. Here is my current
code:

If IsNumeric(txtadmingross.Text) Then
txtadmingross.Text = Format(txtadmingross.Text, "#,##0")
txtTotalGross = Format(Val(txtGross.Text) + Val(txtFI.Text) _
+ Val(txtadmingross.Text), "$#,##0")
Else
MsgBox "Entry must be numeric", vbInformation, "Invalid Entry"
txtadmingross.Text = ""
End If

My problem is that I would like to display the text in txtadmingross
formatted as "$#,##0" as soon as I make this change it no longer adds.
Is this possible? Can I have each of the three text boxes formatted as
currency, at the time of entry (as well as the result) and still have
them add? What am I missing?
Any suggestions would be greatly appreciated.
Terry

 
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
Adding values in textboxes? Tom Ogilvy Excel Programming 0 July 27th 04 08:29 PM
Adding values in textboxes? Bob Phillips[_7_] Excel Programming 0 July 27th 04 06:26 PM
Adding values in textboxes... Tom Ogilvy Excel Programming 0 July 27th 04 05:42 PM
Adding values in textboxes... Jake Marx[_3_] Excel Programming 0 July 27th 04 05:38 PM
Adding the values of 2 textboxes Ben Allen Excel Programming 3 April 29th 04 09:05 PM


All times are GMT +1. The time now is 01:57 AM.

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

About Us

"It's about Microsoft Excel"