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

Formating Data

Status
Not open for further replies.

fludan

Technical User
Feb 1, 2002
41
0
0
US
Hi
I would like to import a list of phone number (000-000-0000) and a would like to format them to a number (0000000000) is this possible?

Thank
Fran
 
You could connect a recordset to the imported data then use the Replace function in VBA:

NewPNString = Replace(MySTRING, "-", "")

where mystring is the phone number with dashes and NewPNString has no dashes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top