ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Display numbers in a userform txtfield as numbers with a comma (https://www.excelbanter.com/excel-programming/347850-display-numbers-userform-txtfield-numbers-comma.html)

TimT

Display numbers in a userform txtfield as numbers with a comma
 
Hello experts,
I am using a form for the user to input wage information and I would like
the numbers to display with the thousands separater and have decimal points.
is there a way to do this?

Bob Phillips[_6_]

Display numbers in a userform txtfield as numbers with a comma
 
When you display the numbers, format them, like so

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

--

HTH

RP
(remove nothere from the email address if mailing direct)


"TimT" wrote in message
...
Hello experts,
I am using a form for the user to input wage information and I would like
the numbers to display with the thousands separater and have decimal

points.
is there a way to do this?




TimT

Display numbers in a userform txtfield as numbers with a comma
 
I guess I would use that format on an OnExit of the field?

"Bob Phillips" wrote:

When you display the numbers, format them, like so

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

--

HTH

RP
(remove nothere from the email address if mailing direct)


"TimT" wrote in message
...
Hello experts,
I am using a form for the user to input wage information and I would like
the numbers to display with the thousands separater and have decimal

points.
is there a way to do this?






All times are GMT +1. The time now is 09:02 AM.

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