Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Excel Form Issues...again :)

Well hello! You people seem to have an answer for me every time, and
guess what? I GOTS ME ANUTTER!!

Here goes: I have a form that users enter information in, and on
changes to those fields, calculations are performed and results put
into text boxes on the bottom (totals and such). My issue is this: I
want the value calculated to display like money ($##.##). I have
tried setting variables as currency (didn't do nuttin) and have tried
rounding to 2 decimals (didn't do it). When the total has decimals,
it displays them, but absolutely refuses to show me the money so to
speak when it is a whole number. How the hell do I get it to show
them pesky .00's?

(Sample code)

Dim muhTotal As Currency

(also tried this with/without the following code, and the following
code with the above defined as Dim muhTotal)

muhTotal= Round(muhTotal, 2)


So...Whatcha think?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Excel Form Issues...again :)

Hi Bohica.

Try:

muhTotal= format(muhTotal, ,"$#,##0.00")

---
Regards,
Norman



"BOHICA" wrote in message
om...
Well hello! You people seem to have an answer for me every time, and
guess what? I GOTS ME ANUTTER!!

Here goes: I have a form that users enter information in, and on
changes to those fields, calculations are performed and results put
into text boxes on the bottom (totals and such). My issue is this: I
want the value calculated to display like money ($##.##). I have
tried setting variables as currency (didn't do nuttin) and have tried
rounding to 2 decimals (didn't do it). When the total has decimals,
it displays them, but absolutely refuses to show me the money so to
speak when it is a whole number. How the hell do I get it to show
them pesky .00's?

(Sample code)

Dim muhTotal As Currency

(also tried this with/without the following code, and the following
code with the above defined as Dim muhTotal)

muhTotal= Round(muhTotal, 2)


So...Whatcha think?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Excel Form Issues...again :)

TextBox1.Text = Format(muhTotal, "$###,###")

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"BOHICA" wrote in message
om...
Well hello! You people seem to have an answer for me every time, and
guess what? I GOTS ME ANUTTER!!

Here goes: I have a form that users enter information in, and on
changes to those fields, calculations are performed and results put
into text boxes on the bottom (totals and such). My issue is this: I
want the value calculated to display like money ($##.##). I have
tried setting variables as currency (didn't do nuttin) and have tried
rounding to 2 decimals (didn't do it). When the total has decimals,
it displays them, but absolutely refuses to show me the money so to
speak when it is a whole number. How the hell do I get it to show
them pesky .00's?

(Sample code)

Dim muhTotal As Currency

(also tried this with/without the following code, and the following
code with the above defined as Dim muhTotal)

muhTotal= Round(muhTotal, 2)


So...Whatcha think?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Excel Form Issues...again :)

WOOOHOOO!!! Thank you again. Worked like a freakin' charm. I am
kicking myself in the ass a bit for not even trying the format, but
whaddyagonnadoo?

Thanks again.
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
excel form. Need data extracted to spreadsheet each time a form co MikeR-Oz Excel Discussion (Misc queries) 4 April 5th 09 05:18 AM
Can a form made in Excel 2002 be converted into a fillable form? Paraclete Excel Discussion (Misc queries) 1 February 20th 07 09:20 PM
Data Form has macro issues SIR Knight Excel Discussion (Misc queries) 2 December 12th 06 12:39 PM
How do I put my information form Excel into a Word Merge Form? Jackie Excel Discussion (Misc queries) 2 March 16th 06 08:16 PM
I created a form on excel. want to edit the form without printing Oz Excel Discussion (Misc queries) 1 September 1st 05 08:18 PM


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