Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default textbox formatting programmatically

Hi everyone
Is there a way to programmatically format a textbox to use the 1000
Separator(,).

Thx

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default textbox formatting programmatically

Hello there,

Not really sure what kind of textbox you are using, so being fairly generic,
use the Format() function, i.e. ...

Format(TextBox1.Value, "#,##0")

HTH

--
Regards,
Zack Barresse, aka firefytr
MsgBox "fire" & "fytr" & Chr(64) & "vba" & "express" & Chr(46) & "com"



"malpropio" wrote in message
oups.com...
Hi everyone
Is there a way to programmatically format a textbox to use the 1000
Separator(,).

Thx


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default textbox formatting programmatically

Something like this...

Private Sub TextBox1_Change()
TextBox1.Text = Format(TextBox1.Text, "#,##0")
End Sub
--
HTH...

Jim Thomlinson


"malpropio" wrote:

Hi everyone
Is there a way to programmatically format a textbox to use the 1000
Separator(,).

Thx


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
suppress conditional formatting programmatically Janis Excel Discussion (Misc queries) 1 September 25th 07 12:06 AM
Textbox Formatting jmc8355 Excel Discussion (Misc queries) 3 April 24th 07 06:30 PM
Programmatically check cell formatting WhyIsEverythingSoConfusing Excel Programming 3 November 7th 05 06:26 PM
Help with Textbox formatting bruce forster Excel Programming 11 April 21st 04 07:44 PM
Textbox formatting Todd Huttenstine[_3_] Excel Programming 5 January 25th 04 12:25 AM


All times are GMT +1. The time now is 11:44 AM.

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"