Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Dollars in a text box

I have a text box, and I want the user to enter a dollar
value. How do I force the entry to a currency, and how do
I display it as $123.45 ??

Thanks in advance...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dollars in a text box

Hi,
Try formating the column for $ and Choose 2 decimals.
Sazi

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Dollars in a text box

But this is a text box in a VBA form - not a cell on the
worksheet. Formatting the column doesn't work on a form
(unless I'm missing something in your reply...)

Thanks - Jeff


-----Original Message-----
Hi,
Try formating the column for $ and Choose 2 decimals.
Saziz


---
Message posted from http://www.ExcelForum.com/

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Dollars in a text box

Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
if isnumeric(Textbox1.Value) then
Textbox1.Value = Format(Textbox1.Value,"$ #,##0.00")
End if
End Sub

--
Regards,
Tom Ogilvy

"Jeff" wrote in message
...
But this is a text box in a VBA form - not a cell on the
worksheet. Formatting the column doesn't work on a form
(unless I'm missing something in your reply...)

Thanks - Jeff


-----Original Message-----
Hi,
Try formating the column for $ and Choose 2 decimals.
Saziz


---
Message posted from http://www.ExcelForum.com/

.



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
Live Currency Conversion US Dollars to Australian Dollars Louise01 Excel Discussion (Misc queries) 1 August 12th 09 11:45 PM
How do I combine dollars and text Kesbutler Excel Discussion (Misc queries) 5 September 11th 08 04:34 PM
convert $10.20 to text ...Ten Dollars &20/100 shapiro Excel Discussion (Misc queries) 11 August 12th 07 11:38 PM
Convert $12.00 to text (Twelve dollars) like you would on a chec.. Dave Excel Worksheet Functions 2 May 14th 05 04:01 PM
converting #dollars into word dollars? hotrodenford Excel Worksheet Functions 2 January 7th 05 06:29 AM


All times are GMT +1. The time now is 11:44 PM.

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"