Macros can be created for PowerPoint using Visual Basic for Applications (VBA). A presentation that contains VBA macros must be saved with a different file-name extension than a regular presentation file (such as .pptx, .potx, or .ppsx) that has no macros in it.
To save a presentation that contains VBA macros, do the following:
-
Click the File tab, and then click Save As.
-
In the Save as type list, select one of the following:
-
PowerPoint Macro-Enabled Presentation A presentation with a .pptm file name extension that can contain VBA code.
-
PowerPoint Macro-Enabled Show A show with a .ppsm file name extension that includes pre-approved macros that you can run from within your presentation.
-
PowerPoint Macro-Enabled Design Template A template with a .potm file name extension that includes pre-approved macros that you can add to a template and use in your presentation.
-
-
Click Save.