• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1874
  • Last Modified:

VBA script to insert PDF object into a word document

I need a VBA script to insert a PDF Object into a MSWord dorcument
0
rob546109
Asked:
rob546109
  • 2
1 Solution
 
Joanne M. OrzechManager, Document Services CenterCommented:
Just record a macro that does it....

This code inserts the object based on an existing file:
    Selection.InlineShapes.AddOLEObject ClassType:="AcroExch.Document.7", _
        FileName:="C:\DOCS\June Publication.pdf", LinkToFile:=False, _
        DisplayAsIcon:=False

Or:

    Selection.InlineShapes.AddOLEObject ClassType:="AcroExch.Document.7", _
        FileName:="", LinkToFile:=False, DisplayAsIcon:=False
0
 
Joanne M. OrzechManager, Document Services CenterCommented:
Thank you!  Glad I could help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now