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:
-
On the File tab, select Save As or Save a Copy.
-
In the file type list under the file name, select one of the following:
-
PowerPoint Macro-Enabled Presentation (*.pptm)Â Â Â Â A presentation with a .pptm file name extension that can contain VBA code.
-
PowerPoint Macro-Enabled Show (*.ppsm)Â Â Â Â 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 (*.potm)Â Â Â Â 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.
-
-
Select Save.