Hello,
I'm a VBA novice trying to solve a data processing challenge and would appreciate any suggestions. Basically, I'm trying to extract selected strings of text from a Word doc to Excel.
I have a massive Word doc with thousands of entries like this:
NEGATIVE DECLARATION-NG-12-196-PL: ENV-2012-595. 2701 S. Western Ave.; South Los Angeles. Council District No. 10. Conditional Use to permit the addition of off-site sale of beer and wine only to an existing, approx. 3,115 sq. ft. convenience market, and to permit the hours of operation from 7:00 am to 9:00 pm daily, on an approx. 26,200 sq. ft. parcel in the C2-1 Zone. Please call a DAY in advance to review file: (213)978-1332. If no answer, please leave message. Documents are available for review by appointment ONLY at: Los Angeles City Hall, 200 N. Spring St., Rm 750, Los Angeles, CA 90012. Comments can be faxed to: (213)978-1343 or e-mailed to: [email protected]. REVIEW/COMMENT period ends: July 25, 2012
What I'd like to output in Excel is (in four separate columns...doesn't render properly in the forum interface):
| DETERMINATION | CODE | PROJECT # | PROJECT |
| NEGATIVE DECLARATION | NG-12-196-PL | ENV-2012-595 | 2701 S. Western Ave. ||
In the DETERMINATION column there are also entries that say "MITIGATED NEGATIVE DECLARATION," and of course the entries for all the other columns are unique as well, and they need to be matched up in a row.
Is this a good candidate for a VBA macro? Maybe I need to process the doc as tab-delimited text first, and then export to Excel? I am tech savvy with some basic programming knowledge but a total Noob at VBA, so any step-by-step instructions would be extremely helpful. Thanks in advance!
- Dan
I'm a VBA novice trying to solve a data processing challenge and would appreciate any suggestions. Basically, I'm trying to extract selected strings of text from a Word doc to Excel.
I have a massive Word doc with thousands of entries like this:
NEGATIVE DECLARATION-NG-12-196-PL: ENV-2012-595. 2701 S. Western Ave.; South Los Angeles. Council District No. 10. Conditional Use to permit the addition of off-site sale of beer and wine only to an existing, approx. 3,115 sq. ft. convenience market, and to permit the hours of operation from 7:00 am to 9:00 pm daily, on an approx. 26,200 sq. ft. parcel in the C2-1 Zone. Please call a DAY in advance to review file: (213)978-1332. If no answer, please leave message. Documents are available for review by appointment ONLY at: Los Angeles City Hall, 200 N. Spring St., Rm 750, Los Angeles, CA 90012. Comments can be faxed to: (213)978-1343 or e-mailed to: [email protected]. REVIEW/COMMENT period ends: July 25, 2012
What I'd like to output in Excel is (in four separate columns...doesn't render properly in the forum interface):
| DETERMINATION | CODE | PROJECT # | PROJECT |
| NEGATIVE DECLARATION | NG-12-196-PL | ENV-2012-595 | 2701 S. Western Ave. ||
In the DETERMINATION column there are also entries that say "MITIGATED NEGATIVE DECLARATION," and of course the entries for all the other columns are unique as well, and they need to be matched up in a row.
Is this a good candidate for a VBA macro? Maybe I need to process the doc as tab-delimited text first, and then export to Excel? I am tech savvy with some basic programming knowledge but a total Noob at VBA, so any step-by-step instructions would be extremely helpful. Thanks in advance!
- Dan