I'm having a weird problem that I can't quiet explain. Basically, if I use this code:

Please Login or Register  to view this content.
Which takes a specific slide that I'm using at the template (defined earlier) and duplicates it. Sets the new slide = ppslCht. Sets how long to stay on the slide before transitioning to the next one. Copies the chart in excel (previously made in macro) and pastes in randomly on the slide. After that is done, I resize and position the chart and fill in the appropriate name (ppShape1) for the slide. This all works great without any problems.

But I thought I could be smarter and save my self some time, since I have a lot of different PowerPoint templates I cycle through with this so I figured I'd add a placeholder to slide master and just past the chart in there and it's be positioned and sized correctly. This is the code I tried to use for that:

Please Login or Register  to view this content.
If I let this code run through without and manual stops, it will always error out. But the error I get is that at a random point before it finished doing this code (about 10 does with a For Loop, once for each person or pm) Powerpoint will show and unexpected error and say I have to close it and restart it. And once I do that, Access where the code is being run from, will give an error 0 without and message. But what is really interesting is if I walk it through it manually, it does error at all.

I've tried putting in a DoEvents, even after every line of code just in case the code is moving on before it's done pasting. I've also tried putting in manual waits but nothing seems to work.

Any ideas? Or is this a problem with PowerPoint 2010?