How to Best Automate and Conquer Your Whopping PowerPoint Slide Needs

In today’s digital landscape, creating automations to improve workflows and efficiencies is crucial. With the rising popularity of ChatGPT and generative AI, more and more professionals are finding innovative ways to gain an edge (and here’s how you can use ChatGPT for content without being generic).

In this blog, I’m going to demonstrate how to automate PowerPoint presentations using ChatGPT to generate VBA code. This post was inspired by a LinkedIn post conversation with Wil Reynolds, who asked his network for suggestions on how to use AI to improve presentations and communications.

What’s cool about this is that you don’t need to be an expert on VBA code. If you can follow short step-by-step instructions, you’ll be good to go!

In another post I dive into how to use ChatGPT to assist with visual content.

How Is This Useful?

Use Case: repurposing my content. If I take one (or several) of my blogs, I can quickly reformat it into a presentation.

Check it out for yourself:

Step-by-Step Guide to Automating PowerPoint with ChatGPT

  1. ChatGPT Prompting: Open a new ChatGPT chat and enter your prompt along with labels and text for each slide. See the prompt I used below.
  2. VBA Code Generation: Upon feeding the above prompt to ChatGPT, it returns with a VBA code specifically tailored for PowerPoint. This code will be used to automate the PowerPoint creation process. See the VBA code it provided below the prompt example.
  3. Integrating VBA into PowerPoint: a. Open PowerPoint. b. Press Alt + F11. This will open the VBA editor inside PowerPoint. c. Navigate to Insert > Module. This action will create a new module. d. Once the new module is open, paste the VBA code that ChatGPT generated for you. e. Save your work by hitting the save icon or by pressing Ctrl + S.
  4. Executing the VBA Code: With the code now in place, run the code by pressing the green “Play” button or hitting F5. Boom! Watch as PowerPoint populates your slides using the imported text.

My Prompt Example

Write this into a VBA code for PowerPoint:

---

## title: "The Rise of the Eagles: The Journey to the 2018 Super Bowl"

---

slide: 1
title: "Introduction"
content:

- The Eagles' remarkable journey.
- The underdog story that captured America.

---

---

slide: 2
title: "The Head Coach: Doug Pederson"
content:

- Hired in 2016, Pederson's leadership transformed the team.
- Created a dynamic and aggressive offensive strategy.
- Fostered a tight-knit team culture.

---

---

slide: 3
title: "Carson Wentz's Stellar Season"
content:

- Drafted 2nd overall in 2016.
- In 2017, threw for 33 touchdowns in just 13 games.
- A frontrunner for MVP before his injury.

---

---

slide: 4
title: "The Backup's Rise: Nick Foles"
content:

- Stepped up after Wentz's injury.
- Had previous success with the Eagles in 2013.
- Played some of the best football of his career in the playoffs.

---

---

slide: 5
title: "Defensive Dominance"
content:

- Ranked 4th in total defense.
- Fletcher Cox led a formidable front.
- Malcom Jenkins provided veteran leadership in the secondary.

---

---

slide: 6
title: "Offseason Acquisitions"
content:

- Acquired key pieces like Alshon Jeffery and LeGarrette Blount.
- Trades and free agent signings provided depth and talent.
- Front office's shrewd moves set the team up for success.

---

---

slide: 7
title: "The 'Philly Special'"
content:

- Trick play in the Super Bowl that defined their aggressive approach.
- Foles caught a touchdown pass on 4th down.
- Embodied the team's fearless attitude.

---

---

slide: 8
title: "Overcoming Adversity"
content:

- Many key players faced injuries throughout the season.
- The "next man up" mentality prevailed.
- Overcame the underdog label to triumph.

---

---

slide: 9
title: "The Super Bowl LII Win"
content:

- Faced the New England Patriots.
- High-scoring game ended 41-33.
- First Super Bowl win in franchise history.

---

---

slide: 10
title: "Conclusion"
content:

- A season of trials and triumphs.
- A true team victory – from the front office to the players.
- A historic moment for Philadelphia and its fans.

VBA Code Provided by ChatGPT

Sub GeneratePresentation()

    ' Declare variables
    Dim pptApp As Object
    Dim pptPresentation As Object
    Dim pptSlide As Object
    Dim pptTextbox As Object
    Dim slideIndex As Integer
    Dim contentIndex As Integer

    ' Create a new PowerPoint application and presentation
    Set pptApp = CreateObject("PowerPoint.Application")
    pptApp.Visible = True
    Set pptPresentation = pptApp.Presentations.Add

    ' Set presentation title
    pptPresentation.Slides.Add 1, 1 ' Slide 1
    pptPresentation.Slides(1).Shapes(1).TextFrame.TextRange.Text = "The Rise of the Eagles: The Journey to the 2018 Super Bowl"

    ' Add the content
    For slideIndex = 1 To 10

        ' Add a new slide
        Set pptSlide = pptPresentation.Slides.Add(slideIndex + 1, 1)

        ' Slide titles and content
        Select Case slideIndex

            Case 1
                pptSlide.Shapes(1).TextFrame.TextRange.Text = "Introduction"
                Content = Array("The Eagles' remarkable journey.", "The underdog story that captured America.")

            Case 2
                pptSlide.Shapes(1).TextFrame.TextRange.Text = "The Head Coach: Doug Pederson"
                Content = Array("Hired in 2016, Pederson's leadership transformed the team.", "Created a dynamic and aggressive offensive strategy.", "Fostered a tight-knit team culture.")

            Case 3
                pptSlide.Shapes(1).TextFrame.TextRange.Text = "Carson Wentz's Stellar Season"
                Content = Array("Drafted 2nd overall in 2016.", "In 2017, threw for 33 touchdowns in just 13 games.", "A frontrunner for MVP before his injury.")

            Case 4
                pptSlide.Shapes(1).TextFrame.TextRange.Text = "The Backup's Rise: Nick Foles"
                Content = Array("Stepped up after Wentz's injury.", "Had previous success with the Eagles in 2013.", "Played some of the best football of his career in the playoffs.")

            Case 5
                pptSlide.Shapes(1).TextFrame.TextRange.Text = "Defensive Dominance"
                Content = Array("Ranked 4th in total defense.", "Fletcher Cox led a formidable front.", "Malcom Jenkins provided veteran leadership in the secondary.")

            Case 6
                pptSlide.Shapes(1).TextFrame.TextRange.Text = "Offseason Acquisitions"
                Content = Array("Acquired key pieces like Alshon Jeffery and LeGarrette Blount.", "Trades and free agent signings provided depth and talent.", "Front office's shrewd moves set the team up for success.")

            Case 7
                pptSlide.Shapes(1).TextFrame.TextRange.Text = "The 'Philly Special'"
                Content = Array("Trick play in the Super Bowl that defined their aggressive approach.", "Foles caught a touchdown pass on 4th down.", "Embodied the team's fearless attitude.")

            Case 8
                pptSlide.Shapes(1).TextFrame.TextRange.Text = "Overcoming Adversity"
                Content = Array("Many key players faced injuries throughout the season.", "The ""next man up"" mentality prevailed.", "Overcame the underdog label to triumph.")

            Case 9
                pptSlide.Shapes(1).TextFrame.TextRange.Text = "The Super Bowl LII Win"
                Content = Array("Faced the New England Patriots.", "High-scoring game ended 41-33.", "First Super Bowl win in franchise history.")

            Case 10
                pptSlide.Shapes(1).TextFrame.TextRange.Text = "Conclusion"
                Content = Array("A season of trials and triumphs.", "A true team victory – from the front office to the players.", "A historic moment for Philadelphia and its fans.")

        End Select

        ' Add content to slide
        For contentIndex = LBound(Content) To UBound(Content)
            Set pptTextbox = pptSlide.Shapes.AddTextbox(Orientation:=1, Left:=100, Top:=100 + (contentIndex * 50), Width:=600, Height:=40)
            pptTextbox.TextFrame.TextRange.Text = Content(contentIndex)
        Next contentIndex

    Next slideIndex

    ' Clean up
    Set pptSlide = Nothing
    Set pptPresentation = Nothing
    Set pptApp = Nothing

End Sub

In Conclusion

The future possibilities for improving workflows appear to be limitless, as generative AI will only get better.

How have you leveraged ChatGPT and other generative AI to enhance your workflows?

Share your experiences, tips, or challenges in the comments below!

Join the 16,000+ people I’m predicting, optimistically to the point of silliness, will see this blog someday… and get my updates straight to your inbox!

Want more of this stuff? Subscribe!

Get My Serious Marketing Takes That Don’t Take Themselves Too Seriously

Delivered twice a month, my videos offer actionable insights and fresh perspectives for marketers and business leaders.

Harnessing the Power of AI with ChatGPT: A Personal Stylist and Professional Problem Solver

Hello, fellow tech, sales, and marketing enthusiasts! Today, I’m thrilled to share some intriguing ways AI is beginning to augment part of my life, simplifying tasks I once found beyond my priorities, and yes, even helping me dress better. We’ll first explore some playful personal applications before delving into its transformative role in my professional life. Ready to geek out with me? Let’s dive in!

I might not be a fashion leader, but I appreciate a well-dressed individual. However, like most (maybe at least some?) adults, I often find myself reaching for familiar pieces in the whirlwind of everyday life. Imagine my surprise when I found a solution in the form of ChatGPT, OpenAI’s language model, stepping in as my personal stylist!

The Unexpected Perks of an AI Stylist

Infographic illustrating the impact of AI (ChatGPT) in personal and professional life, featuring elements like AI as a stylist, automating invoicing, recipe generation, process optimization, writing aid, and visual aid.

Here’s a classic scenario – I needed an outfit for a friend’s daughter’s baptism. Balancing work with a lively 19-month-old child at home meant I had minimal time for outfit planning (let’s face it, I wasn’t likely to plan my outfit regardless). So, I turned to ChatGPT and what ensued was a fascinating experience. With basic instructions including the occasion, weather, dress code, and a family color scheme (we were going for a ‘blue’ theme), ChatGPT put together three outfit options, making full use of my underutilized wardrobe.

To make this possible, I curated a Google Sheets database of my clothes. Ensuring ChatGPT comprehended the layout of this data was critical to receiving meaningful suggestions. I had to do this by first quizzing its understanding of the data and then making adjustments accordingly. When it comes to AI, like anything else, garbage in equals garbage out. So, a well-organized input is essential.

AI: A Game Changer in Professional Sphere

The exciting journey with AI doesn’t end with my personal fashion choices. On the professional front, my role as a Sales System Engineer often entices me to dig into my wider skill set. In the past, I’ve dabbled in the Adobe Suite, website coding, advanced Microsoft Excel reporting, and that’s before getting into my specialization in digital marketing platforms and SEO. However, the question isn’t so much about my ability to execute these tasks, but rather, should I be focusing on them?

While my diverse skill set could, in theory, be advantageous, it’s important to remember my primary role – ensuring optimal sales process and performance. Spending time reacquainting myself with JavaScript or taking on design tasks in Adobe would detract from my core responsibilities. In another post, I show How ChatGPT Helped Me Create Visual Content Faster, detailing how AI assisted in rapidly producing visual assets for a blog on email management and responsiveness.

This is where a predicament arose: Our team provides an automated Personalized Video solution that has greatly improved our own prospecting. However, unlike our target customers, we have a greater need to regularly create new templates to show off our latest capabilities. New templates often require separate setups from our tech team which usually results in manual data processing for our marketing team. While the tool is beneficial even in its current state, we’re not using the fully automated version that our clients use. The manual data processing often takes up to two weeks. As client work usually takes priority over internal requests, we needed to speed things up given the immediate need for new campaigns. And hey, it costs more in resources to acquire new clients than it does to overdeliver for our existing clients, so I’m happy we operate this way. Enter ChatGPT.

ChatGPT came to the rescue by helping me automate the data processing necessary to deliver the data template used for rendering new videos. It followed my instructions to create a JavaScript in Google Sheets. With precise instructions and a clear goal, a task that was previously stuck in the queue for weeks suddenly took only a matter of seconds. What a game-changer!

The Future is AI: Personal & Professional Augmentation

With ChatGPT, I’ve discovered a tool that seamlessly blends into my personal and professional life, offering unique solutions and enhancing productivity. It not only helps me dress sharply (okay, I’ll settle for better) but also offers a swift solution to complex work processes, allowing me to utilize my wider skill set without compromising on my key responsibilities.

The very post you’re reading now was crafted with the assistance of ChatGPT. Like a professional copywriter, it provided suggestions, corrected grammar, helped with formatting, and even adjusted the tone and format for various platforms, including social media posts, my blog, and an accompanying video script. Furthermore, it interviewed me to capture my thoughts and experiences in a comprehensive and coherent manner. The possibilities seem boundless.

As I continue to delve into the world of AI, I’d love to hear about your experiences. How are you using AI to enhance your personal or professional life? Let’s explore this exciting new realm together!

Bryan Kofsky
Sales System Engineer

Want more of this stuff? Subscribe!

Get My Serious Marketing Takes That Don’t Take Themselves Too Seriously

Delivered twice a month, my videos offer actionable insights and fresh perspectives for marketers and business leaders.