Hi,
I have an excel file with a list of items in a column along with its inclusion as Yes/No in adjacent column. Based on the 'No', I need to delete some slides related to those items from the PowerPoint presentation in the same folder.
As of now, I have already created a macro to process some tasks in excel. I have also created one to open the relevant PowerPoint from the folder. But while trying to delete (ex. slide 15, 16) using the following, it throws an error 'Run-time error '429': ActiveX component can't create object'
ActivePresentation.Slides.Range(Array(15, 16)).Delete
Subsequently, I want to replace slide 15, 16 with the relevant variables.
Requesting for some help and guidance.
Thank you,
I have an excel file with a list of items in a column along with its inclusion as Yes/No in adjacent column. Based on the 'No', I need to delete some slides related to those items from the PowerPoint presentation in the same folder.
As of now, I have already created a macro to process some tasks in excel. I have also created one to open the relevant PowerPoint from the folder. But while trying to delete (ex. slide 15, 16) using the following, it throws an error 'Run-time error '429': ActiveX component can't create object'
ActivePresentation.Slides.Range(Array(15, 16)).Delete
Subsequently, I want to replace slide 15, 16 with the relevant variables.
Requesting for some help and guidance.
Thank you,