PC Review


Reply
Thread Tools Rate Thread

Calculating with textboxes

 
 
Mark Rosenkrantz
Guest
Posts: n/a
 
      23rd Nov 2003
Dear all;

I have a UserForm with a few textboxes.
The first textbox : tbAmount holds an invoice amount.
The second textbox: tbVAT should display the amount of VAT ( 19 %
of the amount )

The formula I use is: .tbVAT.Value = .tbAmount.Value * 0.19

Looks fine to me.
But, the stupid box don't disply the right amount.
I live in Europe and the Regional settings are a dot ( . ) for the thousands
seporator and a comma ( , ) for the decimal seporator.

When I enter 2250,00 ( or 2250 ) in .tbAmount, then textbox .tbVat displays
:
427.5 which is not what I want as I hope to see :
427,50

When I bring these values over to the worksheet it displays :
? 2250,00 which is OK, and
? 4275,00 which is not OK, as I want to see:
? 427,50

Apparantly there is some error in the way the textboxes work with thousands.
What is wrong with me ???? ( assuming I am not perfect )
I can't see what I did wrong.

Mark.


 
Reply With Quote
 
 
 
 
Harald Staff
Guest
Posts: n/a
 
      23rd Nov 2003
There are replies in other newsgroups. Please don't multipost.

--
HTH. Best wishes Harald
Followup to newsgroup only please.



 
Reply With Quote
 
Mark Rosenkrantz
Guest
Posts: n/a
 
      23rd Nov 2003
You're right.
But I did that as I was too desperate ....

"Harald Staff" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> There are replies in other newsgroups. Please don't multipost.
>
> --
> HTH. Best wishes Harald
> Followup to newsgroup only please.
>
>
>



 
Reply With Quote
 
 
 
Reply

« macros | MapPoint »
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Textboxes ordnance1 Microsoft Excel Programming 6 27th Oct 2009 08:42 AM
Calculating TextBoxes Patrick C. Simonds Microsoft Excel Programming 2 10th Jan 2009 12:37 AM
calculating textboxes =?Utf-8?B?ZW55YXc=?= Microsoft Excel Programming 1 13th Jul 2006 03:03 PM
Calculating with textboxes.... Mark Rosenkrantz Microsoft Excel Programming 4 23rd Nov 2003 12:42 PM
Calculating with Textboxes ... Mark Rosenkrantz Microsoft Excel Misc 1 23rd Nov 2003 10:55 AM


Features
 

Advertising
 

Newsgroups
 


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