Paste the following code in the newly create module.In the VB Editor, right click on VBAProject and hit Insert.If you don’t see the a Developer entry in the menu, before start your coding you’ll need to enable the developer tab.Īfter you make the Developer menu visible your Ribbon, go ahead and hit on Developer, then hit on the Visual Basic button (or simply go ahead and hit Alt+F11) to open the Visual Basic IDE. A mix of the two above mentioned cases (Create from scratch and slides addition).Add slides to an existing presentation.
In today’s short tutorial, we’ll go over three different use cases: There are further alternatives for PowerPoint Automation, but those goes beyond the scope of this tutorial. Therefore, we are left with good old Visual Basic for Application that we can use to create simple Macros to automate PowerPoint.
I though that script might be highly in the list of the most useful PowerPoint Macros.Īs we indicated in the past, PowerPoint doesn’t include a Macro Recorder (that’s unlike Excel and Word, which both have built in recorders for Macro). A couple days ago, a reader asked about there is a way to automate creation of PowerPoint presentations from scratch and then quickly add slides to that existing presentation.