Vba code to delete all slides with a blank layout powerpoint? -


looking example vba code deletes slides blank layout.

i trying create catalog using userform. user selects products want @ , code deletes slides of products don't want at.

the problem if delete array of slides specific product, changes total number of slides , other slide number arrays no longer contain slides specific other products.

i thinking add blank slides in place of undesired slides , delete of blank slides @ end.

i open other ideas , suggestions. thank time , assistance.

it sounds though you're working arrays of slidenumber or slideindex.
never bother slidenumber various reasons. , in case, slideindex change after delete slides.

instead, either work arrays of slide objects or instead of slideindex, use array of slideid ... slideids assigned when slide created , never change.

example of how find slide slideid, in case, 258 arbitrarily:

dim osl slide set osl = activepresentation.slides.findbyslideid(258) msgbox osl.slideindex 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -