Word Data Extraction

K

Ken

Hi,

I have a VB program that extracts data from a word
document. Most of the data are in tables, so it is
relatively easy to get to. However, I have four values
that fall outside of the table. For example:

Table1 Here

$variable1$

Table2 Here

Here's a sentence: $variable2$


The $ signs delimit where some proprietary software pulls
data into the word document. I believe though that the
variables should always be in the same location. What
would be a good way of pulling those variables into my
program?

Thanks.
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Hi Ken,

Use the Find function with q Wildcard string.

See the article “Finding and replacing characters using wildcards” at:

http://word.mvps.org/FAQs/General/UsingWildcards.htm


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
G

Guest

Yeah, I posted and then realized I didn't have quite
enough info on there. The $ delimiters are only for the
use of the proprietary software. When it's done with it,
there's just some value in that location. Could be a
date, or a test value or a string... But anyhow, the $'s
are gone when the proprietary system saves it off as
a .rtf file. So, I'll never know what to use Find on.
 

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