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

I am drawing a blank and need some help. I need to format a textbox after
it's been updated to the format XXX9999-999. The X's are either Letters or
Numbers and are required, the 9's are any number 0-9. I know how to write
the format, however I don't know how to format the X portion to accept either
Letters or numbers.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formatting Question

Textbox.Text = Left(Textbox.Text,7) & "-" & Right(Textbox.Text,3)

Data in a textbox is string data and you can't "format" string data.

If it is all numeric, then it would be coerced to a number in the format
command, but as you say, if alpha-numeric, this doesn't work.

--
Regards,
Tom Ogilvy


"Thomas L" wrote in message
...
I am drawing a blank and need some help. I need to format a textbox after
it's been updated to the format XXX9999-999. The X's are either Letters

or
Numbers and are required, the 9's are any number 0-9. I know how to write
the format, however I don't know how to format the X portion to accept

either
Letters or numbers.



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 question driller Excel Discussion (Misc queries) 3 September 26th 09 05:02 AM
Formatting Question Carey Abercrombie Excel Worksheet Functions 5 February 23rd 06 07:40 PM
Formatting Question M.Siler Excel Discussion (Misc queries) 3 July 18th 05 09:51 PM
Formatting Question Kent Excel Worksheet Functions 1 March 1st 05 06:26 PM
formatting question Orion[_2_] Excel Programming 5 December 21st 04 01:10 PM


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