TXT equivalent of a DOC range?

B

Bear

I have a TXT file I'm using to find certain sentences in a Word document. Is
there any function that returns the ANSI value of a range? I'm not sure if
that's the correct terminology.

If I saved the DOC in TXT format using SaveAs, I'd have something closer to
a match for the strings I'm searching for. But I'd rather not save the DOC
file. Is there some way I can convert the range?

I can match tabs that were replaced by space characters using ^w in the Find
argument, but there are still fields, symbols, smart quotes, etc. etc. to
compensate for.

Any ideas?

Sorry this is so vague...
 
D

Doug Robbins - Word MVP

Use the .Text attribute of the range.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

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