Has anyone ever worked on VBA code that retrieves phone numbers from Word
documents?
I'm sure someone has, at one time or another. ;-)
The major difficulty is that there are so many ways a telephone number could be
written, with or without embedded spaces, hyphens, parentheses, nonbreaking
spaces.... In order to come up with code that works, you have to examine your
input documents and decide what formats you want to look for. Then you can write
one or more wildcard searches
(
http://www.gmayor.com/replace_using_wildcards.htm) to find them in documents.
The next hurdle is, exactly what do you mean by "retrieve"? Do you want them
listed in a dialog, copied to another document, stored in a database... ?
When you have a better idea of what you want to do, start looking in Google for
likely search terms. For a start, you can just plug the subject line of this
post into the search box.