Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Textbox Format

Hi all,

I have on a userform a textbox where it works out the percentage of the 2
other boxes. But it is not showing in the format I need.

I want it to show as i.e. 56.453
I need it to three decimal places.

Thanks in advance

Greg


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Textbox Format

As a guess in the first 2 text boxes you have on change code that calculates
the percentage and places that in the 3rd text box. Add your format to the
calculation somethnig like this...

TextBox3.text = format(val(TextBox1.text)/val(TextBox2.text), "0.000")

--
HTH...

Jim Thomlinson


"Greg" wrote:

Hi all,

I have on a userform a textbox where it works out the percentage of the 2
other boxes. But it is not showing in the format I need.

I want it to show as i.e. 56.453
I need it to three decimal places.

Thanks in advance

Greg



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
TextBox format? Pas Excel Discussion (Misc queries) 5 April 25th 10 11:13 PM
Textbox Format gti_jobert Excel Programming 5 January 19th 06 08:11 PM
Textbox Format Paul Excel Programming 2 June 21st 05 10:27 AM
Textbox format Greg B[_4_] Excel Programming 4 March 21st 05 09:12 AM
Format Textbox as % Todd Huttenstine[_2_] Excel Programming 2 December 15th 03 12:07 AM


All times are GMT +1. The time now is 06:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"