Calling bookmarked text from Word2007 "docx" document

E

Ed

I use Word 2003.

I frequently am required to use docx documents created in Word2007 that are
sent to me by others. These documents have bookmarked text that I want to
pull out of them via a macro.

I have the proper utility installed for 2003 to read a 2007 docx document.

I typically use this macro to pull a bookmark from a document. Here is the
code:

Selection.InsertFile filename:=(nameoffile), Range:=(bookmark)

This works perfectly when I call the same bookmark from a Word2003 doc
document (incuding the same 2007 docx document that I "SaveAs-ed" into a
Word2003 doc document), so I know the coding is correct.

When I run this same code against the Word2007 docx document, the entire
document is inserted, not just the bookmark text.

Anybody know what gives? Is there a workaround except to convert the 2007
docx to a 2003 doc document?

Thanks. Ed (from Virginia)
 

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