Building a Slide Deck in PowerPoint Using ChatGPT

August 24, 2023
5 min read

ChatGPT and other AI tools have been all the rage these days. I’ll admit, I’m enamored with what it can do and how it can help save me time despite my fear of HAL, the T-800/1000, Otto, and other AI-based apocalypses predicted by Hollywood.

I was asked to speak at an International Association of Microsoft Channel Partners chapter in Colorado a month or so ago and I needed to come up with a cool demo that leaned on the positive side of AI before discussing some of the security concerns that AI prompts. I had seen this trick performed by Nick Saccomanno in a course called “AI and Office” available through ClipTraining and thought it was perfect for the event.

It starts with my apologizing to the group for not having a slide deck to use as the base of our discussion on the positive aspects of AI. But if they’d give me five minutes I could whip something up. I pull up ChatGPT… ask it to make me the slide deck and provide the code in VBScript… import that into PowerPoint… tweak the design… and in five minutes or less I’m ready to go.

Here are the steps:

  1. Start at and log in. You can create an account or use Google, Microsoft, or Apple single-sign-on.
  2. Then I entered this text: “Act as a VBA programmer. Write me a VBA code to create PowerPoint 365 slides about the positive benefits of AI tools. Think like a market researcher and Senior HR professional. Use your knowledge and create at least 6 slides. The first slide is a title slide with 60 pt font. The remaining slides should be Title and Content slides with 44 pt font.” 
Screenshot of ChatGPT 3.5. The prompt field is asking the AI to produce code for a PowerPoint slide deck.
Figure 1: Prompting ChatGPT to create a PowerPoint slideshow. View Full Size

3. During the process it might ask if it can continue generating. Select Continue generating.

4. Now, open PowerPoint and select the Developer tab. If you don’t see that tab (it’s not open by default), select the down arrow off the Quick Access Toolbar to customize it and select More Commands. Select Customize Ribbon. Scroll down the column to find the Developer tab to turn it on and then select Ok

Screenshot of the Customize Ribbon menu in PowerPoint Options. In the options for main tabs, the Developer tab is highlighted, showing that it needs to be checked, but is not checked by default.
Figure 2: The Developer tab must be enabled in PowerPoint's settings. | Used with permission from Microsoft. View Full Size

5. Go to the Developer tab and under the Code grouping select the Visual Basic option.

6. Select the VBAProject and choose Insert and then Module.

7. Go back to ChatGPT, scroll up to the top of the VB code it generated, and choose Copy code

Screenshot of ChatGPT 3.5, showing the AI's code output in response to the prompt to generate VBA code for a PowerPoint slide deck.
Figure 3: ChatGPT's generated code in response to a prompt. View Full Size

8. Return to PowerPoint and paste that code into the open Module dialog. 

Screenshot of the Microsoft VBA application, which opened when Visual Basic was selected in PowerPoint's Developer code menu. ChatGPT's output code has been pasted into a new project module.
Figure 4: To use the slideshow code ChatGPT generated, paste it into a VBAProject module. | Used with permission from Microsoft. View Full Size

9. Next, hit the Play button on the menu bar and watch it go to work.

10. To finalize the look of the presentation, select the Designer tool on the Home ribbon and select new designs for the tabs to help make it look pretty. 

Screenshot of PowerPoint with the resulting slides from ChatGPT's VBA code. The designer panel is open on the right, and a style has been selected for the opening slide.
Figure 5: Giving the generated presentation a style in PowerPoint's Designer. | Used with permission from Microsoft. View Full Size

10 simple steps and five minutes to a ready-to-go presentation. Right?

Well… you may hit a few snags along the way and I’d be remiss if I didn’t point that out. ChatGPT is not as predictable as we would like it to be. At times, when you go to run the code it might come back with an error. The good news is you can go back to ChatGPT and say “That code didn’t work. It gave me error <insert number>.” And ChatGPT will try again. You may need to play with your request or change the complexity of it depending on what you’re asking for. It’s still a work in progress.

What I really love about AI is its ability to make our work life similar to our travel. Do you remember the days when traveling meant paper maps and wrong turns? With GPS there are still imperfections, but it has largely freed us from worrying how to get where we are going, allowing us to focus instead on what we’ll see when we get there. AI can similarly help us accomplish tasks in new and faster ways. And with companies like Microsoft investing in integration through CoPilot (coming soon) we should see more AI in our future.

Resistance is futile.

J. Peter Bruzzese

J. Peter Bruzzese

J. Peter Bruzzese (Co-Founder of ClipTraining) is Microsoft MVP, journalist, internationally published tech author, global tech speaker and cyber security advisor. Follow on Twitter @JPBruzzese or email direct at