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: 61
Default decimal places in currency

I just don't understand this.

When using the following 2 peices of code in a userform I cna format the
data to how I want it so as I'm typing in the data it displays in the
correct format I'm after.

Private Sub MaxQ_Change()
MaxQ = Format(MaxQ, "#,###")
End Sub

Private Sub MeanVC_Change()
MeanVC = Format(MeanVC, "$#,###")
End Sub

So in MaxQ_Change I type 10000, I get 10,000 appear as I'm typing

For in MeanVC_Change I type 15125, I get $15,125 appear.


But for the life of me I can not find a way to put decimals into the values,
where I want them

For example if I try
MeanVC= format(MeanVC, "$#,###.##) and I type 51, I get $5.1 and not $51.00
as I'm, after.

How can I type 51.65 into a textbox and get $51.65?

Thanks in advance



 
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
Decimal Places JHL Excel Discussion (Misc queries) 4 April 24th 07 06:44 PM
Subtracting two 2-decimal place numbers gives result 13-decimal places? [email protected] Excel Worksheet Functions 5 March 12th 07 10:38 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM
variable as Currency two decimal places Max Bialystock Excel Programming 2 May 10th 04 10:48 PM
Text Box Currency format with two decimal places Joe Derr Excel Programming 3 May 6th 04 02:57 AM


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