Jumat, 20 Mei 2011

[ExcelVBA] Re: Extract addresses from Word File?

 

There is always hope (it's just how much effort it takes to achieve it). In your case, it depends on how well defined your word doc is. If the only time a blank line occurs is between company records, then it's simpler than other wise. I assume that your final table has headers

Company Add_line1 Add_line2 Add_line3 City State Zip

and not

Company Add_line1 Add_line2 Add_line3 CityStateZip

If so, you'll need to have a list of all possible states in your records, so that you can locate the state (string) in the CityStateZip field; then, everything before it is the city (string) and everything after it is the zip code (string).

Dave Gathmann

--- In ExcelVBA@yahoogroups.com, "camarodreamer67" <camarodreamer67@...> wrote:
>
> I have a list of approximately 1000 companies in our local area along with their mailing address.
>
> They are all listed straight down in a word doc such as
>
> Company #1 Name
> Address Line 1
> Address Line 2
> City State & Zip
>
> Company #2 Name
> Address Line 1
> Address Line 2
> Address Line 3
> City State & Zip
>
>
> As you can see they vary in length. I want to convert them into a spreadsheet with each line item being a column.
>
> Is there any hope?
>
> Thanks so much! Alicia
>

__._,_.___
Recent Activity:
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------
MARKETPLACE

Get great advice about dogs and cats. Visit the Dog & Cat Answers Center.


Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

Tidak ada komentar:

Posting Komentar