VBA & Macro Problems

Can PowerPoint Record VBA Macros? Alternatives and Solutions

Emma BrownEmma Brown Nov 3, 2026 869 views

Question details

The user is looking to automatically generate VBA code by recording macros in PowerPoint, similar to the functionality available in Excel and Word.

Can PowerPoint Record VBA Macros?
Product
Microsoft PowerPoint
Device & OS
not provided
Scenario
Attempting to automate repetitive formatting or slide creation tasks without manually writing VBA code from scratch.
Observed behavior
Modern versions of PowerPoint do not have a 'Record Macro' button; users can only run or manually code VBA macros.
Before you start

Before exploring automation alternatives, ensure you have the Developer tab enabled in your PowerPoint ribbon to access the Visual Basic Editor and macro security settings.

Solution 1Recommended

Record Macros in Excel and Adapt the Code for PowerPoint

Since PowerPoint lacks a macro recorder, you can use Excel's recorder for chart-related or data-driven objects and modify the generated code for PowerPoint.

Excel retains full macro recording capabilities. If your PowerPoint automation involves charts, graphs, or basic object formatting, you can record the steps in Excel. Once the code is generated, you can copy it into PowerPoint's Visual Basic Editor and update the object references (e.g., changing Worksheet objects to Slide objects).

1
Record the task in Excel

Open Microsoft Excel, navigate to the Developer tab, and click 'Record Macro'. Perform the formatting or chart-creation steps you wish to automate.

2
Access the generated code

Click 'Stop Recording'. Press Alt + F11 to open the Visual Basic Editor in Excel, locate the new module, and copy the recorded VBA code.

3
Adapt the code in PowerPoint

Open PowerPoint, press Alt + F11 to open its Visual Basic Editor, and insert a new module. Paste the code and carefully update Excel-specific objects to their corresponding PowerPoint object models.

Record Macros in Excel and Adapt the Code for PowerPoint
VBA Object Knowledge Required: Adapting code requires a basic understanding of the PowerPoint Object Model, as commands targeting Excel worksheets will not run natively in PowerPoint slides.
Free Microsoft Office alternative

Automate Presentations Seamlessly with WPS Office

While modern presentation software has moved away from macro recording, WPS Office offers a lightweight, highly compatible alternative for your daily presentation needs. The professional versions of WPS Presentation natively support VBA, allowing you to run powerful macros and custom scripts seamlessly within a familiar, easy-to-use interface.

  1. 1. Download and Install WPS Office: Visit the official WPS website, download the free installer, and complete the rapid installation process.
  2. 2. Open Your Presentation: Launch WPS Presentation and open your existing .pptx or .pptm files with complete formatting preservation.
  3. 3. Run Existing Macros: Navigate to the Developer tab (in supported versions) to access the VBA Editor, manage modules, and execute your automation scripts.
Fully compatible with Microsoft PowerPoint (.pptx, .ppt) and macro-enabled formats (.pptm).Native VBA support in professional tiers for executing custom presentation macros.Free and lightweight Microsoft Office alternative that installs in seconds.Familiar tabbed interface requiring zero learning curve to migrate.
microsoft office alternative - wps office

Frequently Asked Questions

Why was the Macro Recorder removed from PowerPoint?

Microsoft removed the macro recording feature from PowerPoint starting with Office 2007. The underlying drawing and graphics engine was completely rewritten for that release, which made the old macro recorder incompatible with the new architecture.

Can I still run existing macros in newer versions of PowerPoint?

Yes. While the ability to record new macros automatically has been removed, PowerPoint fully supports executing, editing, and managing existing VBA macros via the Developer tab and the Visual Basic Editor.

How do I enable the Developer tab in PowerPoint?

Go to File > Options > Customize Ribbon. In the right-hand list under 'Main Tabs', check the box next to 'Developer', and then click OK. The Developer tab will now appear on your main ribbon.