ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   textbox formatting (https://www.excelbanter.com/excel-programming/311865-textbox-formatting.html)

Christy

textbox formatting
 
How can I format a textbox to show a decimal to 2 places. My textob will show
correctly when the amount has chage, but on even dollars the .oo is lost.
Formatting the controlsource cells doesn't seem to help.

Is there a way to 'reload' a textbox on a form without 'reloading' the whole
userform? I posted a problem yesterday about a problem with textboxes not
updating unless the userform was reloaded but I dont like the flash and delay
that causes.

Thanks to all
Christy ;)

Tom Ogilvy

textbox formatting
 
Textbox1.Value = format(cdbl(textbox1.value),"#.00")


--
Regards,
Tom Ogilvy


"Christy" wrote in message
...
How can I format a textbox to show a decimal to 2 places. My textob will

show
correctly when the amount has chage, but on even dollars the .oo is lost.
Formatting the controlsource cells doesn't seem to help.

Is there a way to 'reload' a textbox on a form without 'reloading' the

whole
userform? I posted a problem yesterday about a problem with textboxes not
updating unless the userform was reloaded but I dont like the flash and

delay
that causes.

Thanks to all
Christy ;)




Christy

textbox formatting
 
Thanks again Tom

"Tom Ogilvy" wrote:

Textbox1.Value = format(cdbl(textbox1.value),"#.00")


--
Regards,
Tom Ogilvy


"Christy" wrote in message
...
How can I format a textbox to show a decimal to 2 places. My textob will

show
correctly when the amount has chage, but on even dollars the .oo is lost.
Formatting the controlsource cells doesn't seem to help.

Is there a way to 'reload' a textbox on a form without 'reloading' the

whole
userform? I posted a problem yesterday about a problem with textboxes not
updating unless the userform was reloaded but I dont like the flash and

delay
that causes.

Thanks to all
Christy ;)






All times are GMT +1. The time now is 06:52 AM.

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