Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default formatting text boxes

I have 3 text boxes on a form and a label that show the
sum of the 3. How do I format the text boxes and label so
it shows currency. If user enters 123 I want it to
display as $ 123.00 in the text box and in the label.
Thanks for your help

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default formatting text boxes

Hi Doug
Use format:
TextBox1.Value = Format(CInt(TextBox1.Value), "# ##0 $")
HTH
Cordially
Pascal

"doug" a écrit dans le message de news:
...
I have 3 text boxes on a form and a label that show the
sum of the 3. How do I format the text boxes and label so
it shows currency. If user enters 123 I want it to
display as $ 123.00 in the text box and in the label.
Thanks for your help



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default formatting text boxes

Thanks, but there is still a glitch. When I enter a 2 I
get 2 $ and a "type mismatch" error message. I found
this "$#,##0.00_);[Red]($#,##0.00)" in the help menu,
but I can't get it to work either. Help!!
-----Original Message-----
Hi Doug
Use format:
TextBox1.Value = Format(CInt(TextBox1.Value), "# ##0 $")
HTH
Cordially
Pascal

"doug" a écrit dans le message

de news:
...
I have 3 text boxes on a form and a label that show the
sum of the 3. How do I format the text boxes and label

so
it shows currency. If user enters 123 I want it to
display as $ 123.00 in the text box and in the label.
Thanks for your help



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default formatting text boxes

What event did you put it in? Should be AfterUpdate or Exit, but not
Change.

--
Regards,
Tom Ogilvy

"Doug" wrote in message
...
Thanks, but there is still a glitch. When I enter a 2 I
get 2 $ and a "type mismatch" error message. I found
this "$#,##0.00_);[Red]($#,##0.00)" in the help menu,
but I can't get it to work either. Help!!
-----Original Message-----
Hi Doug
Use format:
TextBox1.Value = Format(CInt(TextBox1.Value), "# ##0 $")
HTH
Cordially
Pascal

"doug" a écrit dans le message

de news:
...
I have 3 text boxes on a form and a label that show the
sum of the 3. How do I format the text boxes and label

so
it shows currency. If user enters 123 I want it to
display as $ 123.00 in the text box and in the label.
Thanks for your help



.



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
how to select multiple text boxes in excel for formatting Rob New Users to Excel 3 April 2nd 23 08:38 PM
Default font for pasted text in text boxes - Excel 2007 MS OFFICE USER EIT Excel Discussion (Misc queries) 0 March 25th 10 09:01 PM
User Form Text Boxes - Copy format of text boxes NDBC Excel Discussion (Misc queries) 3 July 2nd 09 02:02 AM
How do I link Text Boxes to Cells, not Cells to Text Boxes? Ebby Excel Worksheet Functions 1 May 15th 07 11:31 PM
Allow Word type formatting in Excel text boxes bsassone Excel Discussion (Misc queries) 0 November 18th 05 02:24 AM


All times are GMT +1. The time now is 12:57 PM.

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"