Others

How to Batch Export Multiple PowerPoint Presentations to JPG

John WilsonJohn Wilson Nov 2, 2026 869 views

Question details

The user needs to automate the process of exporting over 100 PowerPoint files into JPG images to avoid time-consuming manual work.

How to Batch Export Multiple PowerPoint Presentations to JPG
Product
PowerPoint
Device & OS
not provided
Scenario
Converting a large number of presentation files stored in a single folder into individual sequential JPG image files.
Observed behavior
Manual export is too slow and tedious, requiring an automated batch processing solution like a VBA macro to handle the folder.
Before you start

Gather all the PowerPoint (.pptx) files you wish to convert into a single, dedicated folder on your computer. It is highly recommended to test your macro on a small subset of copied files before processing the complete folder.

Solution 1Recommended

Use a VBA Macro to Batch Export PPTX to JPG

Run a custom VBA script to loop through a folder of presentations and automatically export every slide as a JPG image.

Using a Visual Basic for Applications (VBA) macro is the most efficient way to handle hundreds of files at once. The script will sequentially open each file, export the slides using a defined naming convention, and close the file without requiring any manual intervention.

1
Open the VBA Editor

Launch your presentation software, open a blank presentation, and press ALT + F11 to open the VBA Editor.

2
Create a New Module

In the VBA Editor menu, click on 'Insert' and select 'Module' to open a new code window.

3
Input the Batch Export Script

Paste a VBA script designed to loop through a folder path using the 'Dir' function and save slides using the 'SaveAs' method with the 'ppSaveAsJPG' format.

4
Update the Folder Path

Modify the folder path variable in your script to exactly match the directory where your target PPTX files are stored (e.g., 'C:\Users\Name\Desktop\PPT_Files\').

5
Run the Macro

Press F5 or click the 'Run' button in the toolbar to execute the script. Wait for the process to finish exporting all files in the folder.

Use a VBA Macro to Batch Export PPTX to JPG
Macro Security: Ensure that macros are enabled in your software's Trust Center settings before running the script, otherwise the execution will be blocked.
Efficient Presentation Management

Batch Process and Export Slides with WPS Presentation

WPS Office offers robust support for VBA macros (in compatible versions), allowing you to run custom batch export scripts seamlessly. It also features intuitive built-in tools to easily export single presentations to high-quality images.

  1. 1. Install WPS Office: Download and install the free WPS Office suite from the official website.
  2. 2. Enable Developer Tools: Open WPS Presentation and navigate to the Developer Tools tab to access the macro environment.
  3. 3. Insert Your Script: Click on 'VBA Editor', insert a new module, and paste your PPTX to JPG batch export script.
  4. 4. Execute the Batch Export: Run the macro to automatically convert all presentation files in your specified folder into JPG images.
Full support for VBA macros to automate repetitive exporting tasksSeamless compatibility with Microsoft PowerPoint (.ppt, .pptx) formatsBuilt-in 'Export to Picture' tool for quick single-file conversionsLightweight and fast processing, ideal for handling large documents
microsoft office alternative - wps office

Frequently Asked Questions

Can I customize the exported JPG file names using the macro?

Yes, within the VBA script, you can modify the naming convention to include sequential numbering (e.g., Slide001.jpg, Slide002.jpg) or append the original presentation name to the newly exported image files.

Why did the macro stop running halfway through the folder?

This usually happens if a file in the folder is corrupted, password-protected, or already open in another program. Ensure all presentations are closed and remove any password protection before running the batch macro.

Does exporting to JPG reduce the quality of my slides?

By default, VBA exports slides at the standard screen resolution. If you need higher quality, you can modify your registry settings or specify exact export dimensions (ScaleWidth and ScaleHeight) directly within the VBA code.