Why is VBA unable to open any PowerPoint presentation which has flash in it?

C

Colin McBride

Please help me if you can!

The problem is that whenever I open a PowerPoint presentation using
VBA, (which contains any flash element) the presentation opens but the
VBA code then instantly ends.

This only appears to be a problem when you open the document, if the
document is opened manually you can run any VBA code it works fine.

We have tested this on different versions of Windows and Office and it
seems to happens on all of them.

We have also tried recording a very simple Macro using the built-in
Record Macro tool, which simply opens the presentation and copies and
pastes a box within the presentation. When you then re-run this macro
it will always open the presentation, but crash out of the macro before
it gets to copy the box.

Any idea on how I can get more information about the problem and/or fix
it.

Thanks
Colin

(e-mail address removed)
 
B

Brian Reilly

Colin,
Off the top of my head, the rest of the code is executing while the
presentation is still opening it. Try counting the open presentations
before the FileOpen command and wrap a dowhile loop around the
FileOpen while the Presenttions.open.count <>=
Presentations.open.count + 1

Brian Reilly, MVP
 

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