VBA & Macro Problems

Use VBA to Convert a Legacy PPT in PowerPoint 2013

Elise WilliamsElise Williams Nov 27, 2026 869 views

Question details

Invoke PowerPoint's legacy presentation conversion from VBA rather than using Save As alone.

Use VBA to Convert a Legacy PPT in PowerPoint 2013
Product
Microsoft PowerPoint 2013
Device & OS
not provided
Scenario
A user wants to convert an open legacy PPT presentation to PPTX programmatically.
Observed behavior
The Convert button appears when PowerPoint determines that a presentation needs conversion; saving as PPTX may not perform the same internal conversion.
Before you start

Open the legacy PPT in PowerPoint 2013 and choose a writable output folder and PPTX filename. Enable macros if needed, and store the conversion macro separately if it must be retained: PPTX files do not retain VBA code.

Solution 1Recommended

Call Convert2 on the Active Presentation

Use PowerPoint's Convert2 method to invoke conversion on the presentation currently open in PowerPoint.

1
Open the legacy presentation

In PowerPoint, select File > Open and open the legacy .ppt file you want to convert.

2
Open the VBA editor

Press Alt+F11, then select Insert > Module in a VBA project where you can store the macro.

3
Add the conversion macro

Enter this code, replacing the path with your desired output location: Sub ConvertLegacyPPT() ActivePresentation.Convert2 "C:\temp\convertedfile.pptx" End Sub

4
Run the macro

Return to the legacy presentation so it is active, then run ConvertLegacyPPT from the VBA editor or the Macros dialog. Check the specified folder for the converted PPTX.

Call Convert2 on the Active Presentation
Conversion versus Save As: The Convert command may update a presentation's internal structure differently from Save As. A .ppt extension is a useful indication of a legacy file, but it does not prove that PowerPoint will display the Convert button.
Free Microsoft Office alternative

Work With Legacy Presentations in WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface and support for PowerPoint formats, making it easy to migrate presentation work. PowerPoint's VBA Convert2 method is specific to Microsoft PowerPoint and is not fixed or replaced by WPS Office.

Open and edit presentations in a familiar slide interfaceCompatible with Microsoft PowerPoint PPT and PPTX formatsFree and lightweight for everyday presentation workContinue working with existing Office files when migrating
microsoft office alternative - wps office

Frequently Asked Questions

How do I choose the converted file's location?

Replace the path in ActivePresentation.Convert2 with the full path and PPTX filename you want, such as "C:\temp\convertedfile.pptx". Make sure the folder exists and is writable.

Why doesn't the Convert button appear for every presentation?

PowerPoint shows Convert when it determines that conversion is needed. A legacy .ppt file is a common candidate, but the filename extension alone does not guarantee that the button will appear.

Is saving a PPT as PPTX the same as using Convert?

Not necessarily. Convert may update the presentation's internal structure differently from File > Save As, even when both operations produce a PPTX file.

Will the converted PPTX retain VBA macros?

No. PPTX is not a macro-enabled format, so keep any VBA code you need in a separate macro-enabled presentation or another suitable VBA project.