Consulting

Results 1 to 2 of 2

Thread: Embed PDF File in Word Document

  1. #1
    VBAX Contributor
    Joined
    Aug 2012
    Posts
    120
    Location

    Embed PDF File in Word Document

    I'm trying to embed a pdf file in a Word document using the VBA equivalent of INSERT > OBJECT > ADOBE ACROBAT DOCUMENT, etc.

    My code is this:
    Selection.InlineShapes.AddOLEObject ClassType:="Acrobat.Document.DC", _
                    FileName:="strFullPath & fileNm", LinkToFile:=False, DisplayAsIcon:=False
    I'm getting error #4198.

    I'm not sure what I can do to fix this.

    Also, I don't know if there's an alternative to embedding as an InlineShapes?

    Thanks.

  2. #2
    VBAX Contributor
    Joined
    Aug 2012
    Posts
    120
    Location
    Foolish me! Used quotes marks around variables (recorder, ugh!).

Posting Permissions

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