Assuming it's Presentation in your actual code, all anyone can say is that
opening the presentation didn't work. You haven't given us enough information
to make a better guess than that.
What does the rest of the code look like?
What version of PPT are you using?
Does this happen on all presentations or just some?