Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

word automation: findin out if my word doc contains another word doc 1

Status
Not open for further replies.

davikokar

Technical User
May 13, 2004
523
IT
Hallo,

I have a word document that contains, as inlineshape OLEObject, another word document. I would like to know if there is a way to find out programmatically that the OLEObject in my document is a word document.
 
Yes.
Code:
Dim oInline As InlineShape
Set oInline = ActiveDocument.InlineShapes(1)
Debug.Print oInline.OLEFormat.ClassType
returns (for example);

Word.Document.8


unknown
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top