
Originally Posted by
John Wilson
Not sure why you are saving as a copy but if you need to do that the only sensible way to edit that file is to use presentations.Open and then edit and save and close.
Unless you added or removed slides the IDs should not change
I'm glad you mentioned that because I wasn't sure the best way to do it. I found the Presentations.Open method:
https://docs.microsoft.com/en-us/off...entations.Open
Is there some way to reference the newly opened presentation's object to delete a slide? I'm not knowledgeable of how VBA's object scoping work work in this case. I've seen other examples with references to things like Shapes(1) which looks like an array reference? I'm not even sure when to look in the documentation.
Thank you
EDIT: I think I figured it out...
Presentations.Open sFileToOpen
For Each osld In Presentations(2).Slides
Debug.Print osld.SlideID
Next osld