user form - format a phone number word 2007

D

Dcook

I am so frustrated. I am creating a form and I want to force a phone number
format. Easy in Excel but cannot find it anywhere in word 2007. Please help
Thanks
 
D

Doug Robbins - Word MVP

Use the VBA Format function

Format(1234567890, "(###) ###-####")

will return

(123) 456-7890

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top