Choosing Open Powerpoint Presentation

B

Barb Reinhardt

I'm running this code out of Excel and am having difficulty with the
following line

MyFileName = "BarbsFile.ppt"

'This doesn't work, and used to
On Error Resume Next
Set myPPT = PPTApp.Presentations(myFileName)
On Error GoTo 0

'This does work
For each myPPT in PPTApp.Presentations
if myPPT.Name = myfilename then
Set myPPT1 = myPPT
Exit for
end if
next myPPT

Thanks,
Barb Reinhardt
 
M

Matti Vuori

I'm running this code out of Excel and am having difficulty with the
following line

MyFileName = "BarbsFile.ppt"

'This doesn't work, and used to

I don't believe the code has ever worked, because if it had, PPT would have
harmonized the usage of uppercase letters in myfilename, MyFileName and
myFileName...
 

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

Top