How do I delete all of a slide content but its title with VBA?

Yes, it is handy to be able to automatically delete slides from a PowerPoint presentation

There are instances, however, when it might be smarter to delete the content of a slide rather than the whole slide.

What you can use in such cases is the VBA snippet below, which will loop through all slides of your presentation and delete all content from each slide apart from its title.

In case you you only want to delete a certain element of the slide rather than all of its content, you can use the VBA snippet below to restrict what gets deleted

Full list of the VBA syntax of all Office shapes can be found hereĀ 

Happy VBA coding!