I need to copy a set of slides from one ppt file to another thru vba.
I can't figure out how to activate the other ppt file that is not activated so I can then copy the next slide.
Oh I am newbie to vba needless to say.
It would go something like this in pseudocode
Dim pptapp As PowerPoint.Application Dim pptpres As PowerPoint.Presentation Dim pptslide As PowerPoint.Slide Dim pptpres2 As PowerPoint.Presentation Dim pptslide2 As PowerPoint.Slide 'open presentation 1 slides end up here. 'open presentation 2 'Loop through slides on presentation 2 'select slide 'switch to presentation 1 and paste slide 'switch back to presentation 2 'Loop 'ActivePresentation.Slides.Add(Index:=13, Layout:=ppLayoutText).Select ' ActiveWindow.Selection.Copy ' ActiveWindow.View.Paste ' ActiveWindow.Selection.Copy ' ActiveWindow.View.Paste
I will figure it out if I could just find the way to activate an open presentation other than the on that is activated.
So e.g. if pptpres is activated I could copy the active slide and then activate pptpres2 and paste it until all done.
I thought the code would be pptpres.Activate(name of presentation) but no luck.
Also any could books on ppt vba out there. I can't find a one.
Thanks much Leon.