logo
search
VBA & Macro Problems

How to Change the PowerPoint Video Export Frame Rate using VBA

Huma Ashraf ChHuma Ashraf Ch Sep 30, 2026 868 views

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.

How to Change the PowerPoint Video Export Frame Rate Using VBA
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 you start

Before proceeding, save your current presentation as a Macro-Enabled Presentation (.pptm) to ensure your VBA code is properly saved and executed.

Solution 1Recommended

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.

1
Enable the Developer Tab

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.

2
Create a New Macro

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.

3
Insert the Export Code

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

4
Compile and Check for Errors

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.

5
Run the Macro

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.

Use a VBA Macro to Specify the Export Frame Rate
OneDrive Synchronization Warning: If you experience errors exporting to your Desktop, it is likely because the Desktop is syncing to OneDrive. Change your export path directly to the OneDrive Desktop directory (e.g., using USERPROFILE & '\OneDrive\Desktop\Test.mp4') or use a purely local folder.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the installer and follow the quick setup wizard to install the suite on your device.
  3. 3. Open Your Presentations: Launch WPS Presentation and open your existing .pptx or .pptm files to continue working immediately.
Fully compatible with Microsoft PowerPoint (.ppt, .pptx, .pptm) formats without altering your layouts.Free and lightweight suite that uses fewer system resources during intensive tasks like multimedia exporting.Includes built-in advanced screen recording and presentation video export features.Seamless migration with a highly familiar user interface.
microsoft office alternative - wps office

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.