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


I have a Userform that has several textboxes on it. The textboxes are
linked to cells on a worksheet via the controlsource property. I also
have formatted the textbox as a number with the following code:

Private Sub Textbox1_Change()

TextBox1.value = Format(TextBox1.value, "#,##0.00")

end sub

This works fine when the when the form activates, the textboxes have
the cell values and the proper format. The problem is when the user
tries to change a value in a textbox it will only let them input an
amount between 0 and 9.99. I've tried different formats such as
"#,###.##" and "0,000.00" with similar results.

Any help would be greatly appreciated.


--
henryhbb
------------------------------------------------------------------------
henryhbb's Profile: http://www.excelforum.com/member.php...o&userid=15774
View this thread: http://www.excelforum.com/showthread...hreadid=374411

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default TextBox Format/Editing Problem


This code will be invoked when ever cursor from textbox1 is moved to
another control.


Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
TextBox1.Text = Format(TextBox1.Text, "#,##,000.00")
End Sub


--
anilsolipuram
------------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...o&userid=16271
View this thread: http://www.excelforum.com/showthread...hreadid=374411

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
Locked for editing problem... DanF Excel Discussion (Misc queries) 1 July 4th 08 08:28 PM
hyperlink editing problem justamailman Links and Linking in Excel 2 October 29th 06 05:02 PM
Cut & paste editing problem. Grinch Excel Programming 0 January 20th 04 09:46 PM
Start editing point in a TextBox Flemming Dahl Excel Programming 1 October 15th 03 08:15 AM
Editing date in textbox? Don Wiss Excel Programming 2 September 23rd 03 02:06 AM


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