Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formatting returned value in TextBox

I am trying to return a value as actual currency. I would like it t
be constant 2 digits. When I use the round feature, it eliminates th
zeros

How do I hold 2 digits constant.

I already am placing the $ in front

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Formatting returned value in TextBox

just use

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

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"jpendegraft " wrote in message
...
I am trying to return a value as actual currency. I would like it to
be constant 2 digits. When I use the round feature, it eliminates the
zeros

How do I hold 2 digits constant.

I already am placing the $ in front.


---
Message posted from http://www.ExcelForum.com/



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
formatting a textbox Ed Excel Discussion (Misc queries) 1 February 24th 08 09:15 PM
Textbox Formatting jmc8355 Excel Discussion (Misc queries) 3 April 24th 07 06:30 PM
Formatting of the Returned Value of a Formula Q John Excel Worksheet Functions 2 December 7th 04 10:54 AM
TextBox Formatting ToddG[_2_] Excel Programming 5 April 7th 04 09:29 PM
Textbox formatting James Auty Excel Programming 1 February 4th 04 06:34 PM


All times are GMT +1. The time now is 06:49 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"