Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Currency in Userform

Hello,

Office 2000 on Windows NT.

Is there any way to display the "$" in a userform? I have it on the worksheet,
but would like to display it in the textbox on the userform.

Also, I have used the "Round" on the worksheet to display only 2 decimal
places in the same textbox. Is there another way to do this?

Appreciatively, Al
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Currency in Userform

Textbox1.Text = Range("A1").Text

--
Regards,
Tom Ogilvy

"Fixital" wrote in message
...
Hello,

Office 2000 on Windows NT.

Is there any way to display the "$" in a userform? I have it on the

worksheet,
but would like to display it in the textbox on the userform.

Also, I have used the "Round" on the worksheet to display only 2 decimal
places in the same textbox. Is there another way to do this?

Appreciatively, Al



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Currency in Userform

Hi Fixital

You can use the format function

Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Me.TextBox1.Text = Format(TextBox1, "your format")
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Fixital" wrote in message ...
Hello,

Office 2000 on Windows NT.

Is there any way to display the "$" in a userform? I have it on the worksheet,
but would like to display it in the textbox on the userform.

Also, I have used the "Round" on the worksheet to display only 2 decimal
places in the same textbox. Is there another way to do this?

Appreciatively, Al



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Currency in Userform

Al,

If you are wanting to format user input, you need to do it at the end, or as
it is input. The formatting is done with

Textbox1.Text = Format(Textbox1.Text,"$#,##0.00")

That shows the currency and the number of dec places.

--

HTH

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

"Fixital" wrote in message
...
Hello,

Office 2000 on Windows NT.

Is there any way to display the "$" in a userform? I have it on the

worksheet,
but would like to display it in the textbox on the userform.

Also, I have used the "Round" on the worksheet to display only 2 decimal
places in the same textbox. Is there another way to do this?

Appreciatively, Al



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
TextBox on a userform - format to currency & percent Terry Excel Discussion (Misc queries) 2 September 12th 08 02:46 PM
UserForm TextBoxes - Is there a way to format as currency or perce Terry Excel Discussion (Misc queries) 0 September 11th 08 06:27 PM
Currency Format on UserForm when opened! Robo[_2_] Excel Discussion (Misc queries) 3 May 8th 07 02:42 PM
Userform Textbox Currency Format Problems Dunce in SC Excel Programming 2 October 27th 03 12:45 AM
Textbox on a userform.. dispaly as currency John Wilson Excel Programming 0 September 10th 03 10:54 PM


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