Skip to main content
100%

Convert powerpoint slides to images in VBA

✓ Published0🌍 Public
CChristosT
Last edited Jun 3, 2019
Created on Jun 3, 2019

This example shows how to batch-convert every slide in a PowerPoint presentation into JPEG images. The VBA macro iterates through all slides in the active presentation, exporting each one with a fixed output size of 2667 by 1500 pixels. The code uses the `Slide.Export` method, which is part of the PowerPoint object model, and references the `ActivePresentation` object. The filenames include a zero-padded slide index to preserve order. The macro relies on the built-in VBA `For Each` loop and the `Format` function to generate sequential names, with the output directory hardcoded as "Z:\". This approach automates slide-to-image conversion without manual screen captures.

AI-generated description

Similar vizzes