VBA & Macro Problems

Save PowerPoint VBA Copies in the Presentation Folder

Chanuka GeekiyanageChanuka Geekiyanage Nov 27, 2026 868 views

Question details

The user needs a PowerPoint VBA macro to save a presentation copy in the intended folder.

Save PowerPoint VBA Copies in the Presentation Folder
Product
Microsoft PowerPoint VBA
Device & OS
not provided
Scenario
A macro saves a copy of a presentation, either beside the original file or in a specified folder.
Observed behavior
The copy may be saved in the current working folder instead of the presentation folder. The macro may also appear to exit slide show mode when saving.
Before you start

Save the original presentation first if you want to use its folder path, and make sure any destination folder already exists. The path examples below use Windows-style backslashes.

Solution 1Recommended

Save a copy beside the original presentation

Use the presentation's Path and Name properties to construct a full destination path.

1
Open the VBA editor

In PowerPoint, open the presentation and select Developer > Visual Basic. Open the module containing your macro.

2
Check the original location

Save the presentation through File > Save if it has not been saved yet. ActivePresentation.Path must not be empty for this method.

3
Set the copy path

Replace the relative SaveCopyAs call with: ActivePresentation.SaveCopyAs ActivePresentation.Path & "\COPY" & ActivePresentation.Name

4
Run and check the macro

Run the macro from Developer > Macros, then open the original presentation's folder and look for the file whose name starts with COPY.

Slide show behavior: Specifying a full path addresses the copy's destination; it does not guarantee that a macro will remain in slide show mode. If the slide show still appears to exit, test the save call separately and review the rest of the macro.
Free Microsoft Office alternative

Work with presentation files in WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface for opening and editing presentations. Its PowerPoint format compatibility makes it easier to move existing files into WPS; it does not fix PowerPoint VBA behavior.

Open and edit Microsoft PowerPoint PPTX filesSave presentation files using a familiar interfaceUse a free, lightweight Office suiteMove existing Office documents into a familiar workspace
microsoft office alternative - wps office

Frequently Asked Questions

Why did SaveCopyAs save the file in a different folder?

A relative filename can be resolved against PowerPoint's current working folder. Include a full path in the SaveCopyAs argument to specify the destination.

What if ActivePresentation.Path is empty?

The presentation may not have been saved yet. Use File > Save to give it a location before building a copy path from ActivePresentation.Path.

Does SaveCopyAs create the destination folder?

No. Create the folder first in File Explorer or choose an existing folder before running the macro.

Will a full path prevent the slide show from exiting?

A full path controls where the copy is saved, but it does not guarantee slide show behavior. Run the save call separately and inspect the rest of the macro if the issue continues.

Which extension should I use for a copy that contains macros?

Use a macro-enabled format such as .pptm if the copy needs to retain VBA macros. Open the saved copy and verify that the macros are present.