How to Change the PowerPoint Video Export Frame Rate using VBA
Question details
The user wants to export a presentation as an MP4 video with a custom frame rate instead of the default 30.30 FPS.

- Product
- Microsoft PowerPoint
- Device & OS
- not provided
- Scenario
- Exporting a presentation to a video format for professional editing or broadcasting where strict frame rate standards (such as 23.976 FPS or 25 FPS) are required.
- Observed behavior
- PowerPoint natively exports MP4 videos at approximately 30.30 frames per second and lacks a built-in graphical interface option to explicitly set a custom frame rate.
Before proceeding, save your current presentation as a Macro-Enabled Presentation (.pptm) to ensure your VBA code is properly saved and executed.
Use a VBA Macro to Specify the Export Frame Rate
By utilizing the CreateVideo method in PowerPoint VBA, you can explicitly define the FramesPerSecond parameter for your exported MP4 file.
PowerPoint's object model allows you to trigger the video export programmatically. By passing a custom value to the FramesPerSecond parameter, you can bypass the default 30 FPS limitation.
Ensure that the export path you specify is correct. If your Desktop folder is redirected to a cloud service like OneDrive, you must use the precise absolute path or select a completely unsynced local folder to avoid file creation errors.
Go to File > Options > Customize Ribbon. In the right pane, check the box next to 'Developer' and click OK to make the Developer tab visible on your ribbon.
Navigate to the Developer tab and click on 'Macros'. Type a name for your macro (e.g., 'ExportCustomFPSVideo') and click 'Create' to open the VBA Editor.
Between the 'Sub' and 'End Sub' lines, enter the following code snippet, adjusting the file path and frame rate as needed: ActivePresentation.CreateVideo FileName:="C:\LocalFolder\Test.mp4", DefaultSlideDuration:=5, FramesPerSecond:=23.976
In the VBA editor menu, click on Debug > Compile VBA Project. If no error messages appear, your syntax is correct and ready to be executed.
Press F5 on your keyboard or click the 'Run' button in the VBA toolbar. The presentation will begin exporting to the specified path at your designated frame rate. Check the status bar at the bottom of the PowerPoint window for the export progress.

Experience Seamless Presentation Creation with WPS Office
If you frequently encounter limitations or need a more lightweight solution, WPS Office offers a robust, free alternative to Microsoft Office. It seamlessly handles PowerPoint files while providing an intuitive, user-friendly interface.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the installer and follow the quick setup wizard to install the suite on your device.
- 3. Open Your Presentations: Launch WPS Presentation and open your existing .pptx or .pptm files to continue working immediately.

Frequently Asked Questions
Can I change the video export frame rate without using VBA in PowerPoint?
No, PowerPoint's default user interface only allows you to select the resolution (such as 1080p or 4K) when exporting a video. The frame rate is locked to approximately 30 FPS natively. Setting a custom frame rate currently requires using VBA.
Why is my VBA video export failing when saving to the Desktop?
If your Desktop is backed up or synchronized with Microsoft OneDrive, the standard Desktop file path may be invalid for the VBA script. You must either update the file path to explicitly include the OneDrive directory or save the MP4 to a non-synchronized local folder like C:\Videos.
Can I export presentations at 60 FPS using this VBA method?
Yes, you can set the FramesPerSecond parameter in the CreateVideo method to 60. However, keep in mind that exporting at 60 FPS will significantly increase the rendering time and the final file size of the MP4 video.




