Best way to parse/walk-thru WORD document using VBA?

J

Jeff J Jones

Hi,

I have a large WORD document that I need to parse and extract the
information from.

The information is formatted by sections, headers and tables.

I have only briefly visited the object hierarchy for WORD and so am looking
for insight into just how best to walk this document and extract the
information.

For example, is there a way to move from cell to cell in a table?

Thanks much
 
W

Word Heretic

G'day "Jeff J Jones" <jjones#NOSPAM#@jonestc.com>,

Define parse and extract please. The current scope is literally a full
blown NLP and I find that extremely unlikely.

Usually specific data items are located by one or a combination of
these methods:

A fixed offset in a table. Eg, table 1, row 1, always has the Shrink's
name in it.

A keyword in a column of any table. Eg any table row whose cell 1
reads "Shrink's Name" has the Shrink's name in cell 2.

A bookmark of fixed name or prefix over a range.

Inline keywords. Eg, there is a heading somewhere, god knows what
style, that read's "Shrink's Name"

A specific character or paragraph style.

A tighter spec would make life easier mate. Why not

I have a document that has a Shrink's name in it. I don't know where I
can find this. Here are some examples of the context within which it
will be found.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Jeff J Jones reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top