Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Formating textbox's on a userform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Oggy - 23 Jan 2007 20:08 GMT
Hi

I have created a userform with several textbox's on. They pull in
infomaton form a cell on a spreadsheet and i  then can edit them if i
wish to do so.

How can i format the text box's to show 2 decimal placings and
currency.

Many thanks in advance

Regards

Oggy
theSquirrel - 23 Jan 2007 20:12 GMT
Use something like this:

me.textbox1.value = format(me.textbox1.value, "$###,##0.00")

> Hi
>
[quoted text clipped - 10 lines]
>
> Oggy
Oggy - 23 Jan 2007 21:01 GMT
Thanks,

this is what i am looking for, but when i enter a number eg 2.72 it
rounds up to 3.

Do you have any suggestions.

Thanks again

Oggy

> Hi
>
[quoted text clipped - 10 lines]
>
> Oggy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.