LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formatting Textbox, passing values to worksheet


Hello Craig,

You were pretty close to solving the problem. Just move the Format
statement into the TextBox's After_Update event. Use "Currency" for
money formatting because it is internationally aware.


Code:
--------------------

Private Sub TextBox1_AfterUpdate()

TextBox1.Text = Format(TextBox1.Text, "Currency")

End Sub

--------------------

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=482423

 
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
Copying values and formatting but not formulae to new worksheet with VBA [email protected] Excel Programming 3 October 28th 05 02:27 PM
Passing Values Information Hog[_6_] Excel Programming 6 August 23rd 05 04:06 PM
put worksheet values into textbox on form thmort Excel Programming 2 July 17th 05 09:39 AM
Excel VBA - Problem calculating and passing values to another worksheet DanielCox Excel Programming 1 August 31st 04 12:36 PM
Calling a Sub passing Textbox name Ducttape19 Excel Programming 2 April 7th 04 01:35 PM


All times are GMT +1. The time now is 09:55 AM.

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"