Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Oct 2007
    Posts
    172
    Thanks
    0
    Thanked 2 Times in 1 Post

    Open Embedded OLE object from Command Button (Excel 2003)

    Hi,

    i've got an embedded Acrobat file in my worksheet, which I want to open from a command button. I've searched about the internet but I can't get it to work - although i'm sure it's very simple when you know how!

    I've tried various things, but i'll not paste them all here!

    cheers

    Dom

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

    Re: Open Embedded OLE object from Command Button (Excel 2003)

    You can use code like this:
    <code>
    ActiveSheet.OLEObjects(1).Verb Verb:=xlPrimary
    </code>
    This assumes that the Acrobat file is the first or only embedded object on the sheet.

Posting Permissions

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