Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Oct 2001
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Printing embedded documents (Word 2003)

    I have received a document which contains 7 embedded documents. Is there a way to print the primary and the 7 embedded documents without having to open each embedded document?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Printing embedded documents (Word 2003)

    If the documents have been embedded as EMBED fields, you'll have to open each of the documents in turn to print them. You can do this in code, if you like:

    Sub PrintEmbedded()
    Dim fld As Field
    ' Print main doc
    ActiveDocument.PrintOut
    ' Loop through fields
    For Each fld In ActiveDocument.Fields
    ' Is it an embedded doc?
    If fld.Type = wdFieldEmbed Then
    If so, open it
    fld.OLEFormat.DoVerb VerbIndex:=1
    ' And print it
    ActiveDocument.PrintOut
    ' Close it
    ActiveDocument.Close False
    End If
    Next fld
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •