+ Reply to Thread
Results 1 to 12 of 12

Error -2147467259 (80004005) Powerpoint could not open the file

  1. #1
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Error -2147467259 (80004005) Powerpoint could not open the file

    I'm trying to open an Powerpoint presentation from Excel VBA.
    Please Login or Register  to view this content.
    Error occurs when openening the presentation (line 4).

    Googling for clues gives 2 possible causes:
    - reference to Powerpoint library missing
    - filepath not correct
    Checked that: library reference is there and the filepath is 100% correct.
    Most of the OPs of the posts found report back that it's working with them.
    So it must be something in my project.

    Could it be that I'm missing some other reference?
    These are my references:
    Refrs.jpg
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Error -2147467259 (80004005) Powerpoint could not open the file

    Hi Tsjallie,

    The first thing I notice is that you use late binding for Powerpoint because you have defined Obj1 as a generic object and are creating an instance via CreateObject. The reference set to Poiwerpoint as demonstrated by your screenprint is therefore (in my opinion not relevant).

    If you want to use early binding:

    Please Login or Register  to view this content.
    If you want to use late binding (in which case the reference can be removed)

    Please Login or Register  to view this content.
    Hope this helps
    If you like my contribution click the star icon!

  3. #3
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Error -2147467259 (80004005) Powerpoint could not open the file

    Hi Olaf,
    thanks for reponding. I tried both early and late binding, but same error occurs.
    Any other suggestions?

  4. #4
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Error -2147467259 (80004005) Powerpoint could not open the file

    Tsjallie, any chance of posting a copy of the Powerpoint presentation so I can try for myself?

  5. #5
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Error -2147467259 (80004005) Powerpoint could not open the file

    Hi Ollie (don't why I called you Olaf in a previous post),
    completely missed you question until now.

    When I tried to upload the ppt it got marked invalid. So may be there's to problem.

    Hmm, looked into it, but it opens fine in Ppt.
    But cannot upload it. Forum uploader doesn't "see" it.
    As a matter of fact it doesn't recognize any of my ppt files.
    The basic uploader however does see my files, but still refuses to upload.
    Will post a question in the watercooler.
    Thx for looking into it.
    Last edited by Tsjallie; 01-10-2013 at 05:23 PM. Reason: update

  6. #6
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Error -2147467259 (80004005) Powerpoint could not open the file

    I change my forum name :-)

    try uploading it in a zip file

  7. #7
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Error -2147467259 (80004005) Powerpoint could not open the file

    Hey Ollie,
    here's the zipped file.
    I don't think the file is the problem, but one never knows.
    Attached Files Attached Files

  8. #8
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Error -2147467259 (80004005) Powerpoint could not open the file

    Tjallie,

    Is it right that the presentation is completely empty?

    I had no problem opening the presentation using the following code

    Please Login or Register  to view this content.

  9. #9
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Error -2147467259 (80004005) Powerpoint could not open the file

    Hi Ollie,
    the ppt is a dummy and indeed is empty.
    I'll try this code you posted.
    Thx so far!

  10. #10
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Error -2147467259 (80004005) Powerpoint could not open the file

    You won't believe this:
    problem was that a named the file xls2ppt.ppt iso xls2ppt.pptx

    I'll get my coat ...

  11. #11
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Error -2147467259 (80004005) Powerpoint could not open the file

    Haha, sometimes we just do not see our own mistakes. Even if look at it a 100 times. Have a good weekend!

  12. #12
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Error -2147467259 (80004005) Powerpoint could not open the file

    Same to you.
    See you around.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1