Open PowerPoint Document

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'd like to open a powerpoint document from access, but am getting an error
message every time I try. Here's the code i'm using:

Call Shell("powerpnt.exe z:\shared folder\pipeline process\pipeline
process.ppt", 1)

It appears that the spaces in my folder names are hanging it up. If I take
the spaces out of the folders, it works. However, I'd really like to leave
the folder names as they are, if possible. Any alternatives to make it work
without changing the folder names?

Thanks!
 
Call Shell("powerpnt.exe ""z:\shared folder\pipeline process\pipeline
process.ppt""", 1)

or

Call Shell("powerpnt.exe " & chr(34) & "z:\shared folder\pipeline
process\pipeline process.ppt" & Chr(34), 1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top