I am working on exporting Contents from Excel to PowerPoint. I have a blank formatted slide in my PowerPoint presentation which I Need to duplicate everytime and write on it. The Problem is that my code adds a new slide ahead of the current slide which is posing Problems in writing the Contents to the exact slide number. I want that the new slide should be added after the current slide.
Set pptSlide = oPPTApp.ActivePresentation.Slides(1).Duplicate.Item(1)
oPPTFile.Slides(SlideNum).Select
Set oPPTShape = oPPTFile.Slides(SlideNum).Shapes("Table 1")
any Suggestions ?
.Item(1)from your first line. According to the documentation of .Duplicate(),pptSlideshould be the second slide already..Item(1), it gives a Type Mismatch Error as.DuplicateReturns a range and not a slide.pptSlide) so why are you referring to the count of slides? Also posted: mrexcel.com/forum/excel-questions/…