How to Batch Export Multiple PowerPoint Presentations to JPG
Question details
The user needs to automate the process of exporting over 100 PowerPoint files into JPG images to avoid time-consuming manual work.

- 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.
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.
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.
Launch your presentation software, open a blank presentation, and press ALT + F11 to open the VBA Editor.
In the VBA Editor menu, click on 'Insert' and select 'Module' to open a new code window.
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.
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\').
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.

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. Install WPS Office: Download and install the free WPS Office suite from the official website.
- 2. Enable Developer Tools: Open WPS Presentation and navigate to the Developer Tools tab to access the macro environment.
- 3. Insert Your Script: Click on 'VBA Editor', insert a new module, and paste your PPTX to JPG batch export script.
- 4. Execute the Batch Export: Run the macro to automatically convert all presentation files in your specified folder into JPG images.

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.




