ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Displays numbers as $ on a form (https://www.excelbanter.com/excel-programming/403553-displays-numbers-%24-form.html)

Southern at Heart

Displays numbers as $ on a form
 
If a textbox is showing a value from a cell, can you format the textbox as
currency ($)... The cell has this formatting set to it, but it doesn't carry
over to the userform.
thanks.

Joe[_46_]

Displays numbers as $ on a form
 
On Jan 3, 11:26*am, Southern at Heart
wrote:
If a textbox is showing a value from a cell, can you format the textbox as
currency ($)... *The cell has this formatting set to it, but it doesn't carry
over to the userform.
thanks.




Try this

K = 50.449876 ' or a cell value
T.Value = Format(K, "0.00") & "$" 'TextBox

HTH
Joe


All times are GMT +1. The time now is 01:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com