Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Formating textbox's on a userform

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Formating textbox's on a userform

Use something like this:

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



Oggy wrote:
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Formating textbox's on a userform

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


Oggy wrote:
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


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
Tabbing between textbox's dr chuck Excel Programming 3 September 3rd 06 07:04 PM
A Follow up to Userform Formating Jeff Excel Discussion (Misc queries) 1 April 14th 06 05:55 PM
Userform Formating Jeff Excel Discussion (Misc queries) 1 April 14th 06 03:56 PM
Digits in textbox's Greg B Excel Discussion (Misc queries) 4 September 4th 05 06:23 PM
Digits in textbox's Greg B[_5_] Excel Programming 4 September 4th 05 06:23 PM


All times are GMT +1. The time now is 02:41 PM.

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"