I am writing some code to import a massive amount of cell phone numbers into AD. My import data is going to be just strings of numbers like: 8005551212 or 18005551212. First, I need to strip off the "1" if its there. Here is some loginc I was thinking of using:
Does that look like it will work ok?
Now, for the one that I do NOT know how to do. I need to figure out how to take a string of numbers like 8005551212 and format it like this: 800.555.1212
Any suggestions?
Code:
If Len(strCell) > 10 And Left(strCell,1) = "1" Then
strCell = Replace(strCell,"1","",1,1,1)
End If
Does that look like it will work ok?
Now, for the one that I do NOT know how to do. I need to figure out how to take a string of numbers like 8005551212 and format it like this: 800.555.1212
Any suggestions?