Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Cell Format

Status
Not open for further replies.

FredGarvin

Mechanical
Joined
Oct 10, 2001
Messages
221
Location
US
Does anyone happen to know the format string that Excel uses to create it's special format for US telephone numbers?

The reason I am asking is that I am trying to use the same mask but in a different application and can not get that to work right. I have tried using "("###")"_###"-"#### but that doesn't work.

Any tips? Thanks!
 
Hello,

I have this as a preset try

[<=9999999]###-####;(###)###-####

seems to work for me.

----------------------------------
Hope this helps.
----------------------------------

maybe only a drafter
but the best user at this company!
 
Hello,

you could just use

(###)"_"###-#### as well, if the numbers are entered correctly. Excuse the lack of knowledge of US phone numbers, I am in the UK.



----------------------------------
Hope this helps.
----------------------------------

maybe only a drafter
but the best user at this company!
 
Thanks for the help you guys. I could have sworn I tried that, but when I went back and tried it it worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top