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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto-Format Phone Numbers to (XXX)-XXX-XXXX

Status
Not open for further replies.

leeym

IS-IT--Management
Aug 20, 2004
338
US
We have created a new Phone number field in Outlook, but we want it to be reformated into this format: (XXX) XXX-XXXX. Is there a way to do this?

Thanks
 
You can use this line if code

Format("8003334444", "(###) ###-####")

this returns (800) 333-4444

good luck
 
You do not state what vesion of Outlook. It is always a good idea when posting to give the version of the application you are asking about.

In 2002, you can:

View > Current View > Customize Current View > Fields and select the New Field button.

In the New Field dialog, give it a name, make the type Formula, select Edit and put - Format("","(###) ###-####").

And do all the usual OK/Close yadda yadda back out again.

Gerry
My paintings and sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top