![]() |
How to open a Powerpoint file from VB 2010?
This is what I'm doing: (using VB 2010 Express)
Dim showFile as Double showFile = Shell("C:\...POWERPNT.EXE /S C:\Users\MyName\Folder with Files\" & _ "pptFile.ppsx", vbNormalFocus) When I execute the program a message says: "PowerPoint cannot read: C:\Users\MyName\Folder ." then I click OK on the message box and it continues: "PowerPoint cannot read: with Files\pptFile.ppsx" Clearly there's something with the folder's name. I've already defined a variable String for the full file's name and then concatenated; no help. Please help! This is my first post in this Forum. Forgive any mistakes. Glad to be here! Peter |
Re: How to open a Powerpoint file from VB 2010?
have you tried using the folder the name of which is without any spaces?
|
Re: How to open a Powerpoint file from VB 2010?
Thank you!
That was the matter! Folders' names cannot have spaces. :crazy: |
Re: How to open a Powerpoint file from VB 2010?
Quote:
|
| All times are GMT +5.5. The time now is 20:02. |