Jump to content

Recommended Posts

Posted

I've successfully used ShellExecute in the past, which just perplexes me all the more.  The following code gives me an error: This file does not have a program associated with it for performing this action.

ShellExecute ("C:\Program Files (x86)\Microsoft Office\Office14\POWERPNT.EXE", "C:\Users\keitht\Desktop\New Microsoft PowerPoint Presentation.ppsx", "", "Show", @SW_MAXIMIZE)

It seems that the action in the error is the verb Show in the code, and it's true that powerpnt.exe has no "Show" verb, the slideshow (.ppsx) does.  The slideshow is currently opening in Edit mode.  How do I get it to open as a slideshow?

 

Thanks,

 

_aleph_

 

Meds.  They're not just for breakfast anymore. :'(

Posted

JohnOne,

Thanks for the suggestions, but I'm getting the same error.  It suggests I set up a file association.  .ppsx is currently set up to open with PowerPoint.  I thought you had to give the executable as your first parameter.

_aleph_

Meds.  They're not just for breakfast anymore. :'(

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...