×
英语
很抱歉。本文没有你的语言版本。

Save a presentation that contains Visual Basic for Applications (VBA) macros

Macros can be created for Microsoft PowerPoint using Visual Basic for Applications (VBA). You can't save presentations that contain VBA with a file name extension that ends with an “x” (such as .pptx, .potx, or .sldx), which refer to presentation files that contain no macros.

Important:  This feature isn’t available in Office on a Windows RT PC. Want to see what version of Office you're using?

To save a presentation that contains VBA macros, do the following:

  1. In PowerPoint 2007, click the Microsoft Office Button Office button image , and then click Save As. In PowerPoint 2010 or PowerPoint 2013, click the File tab, and then click Save As.

  2. 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 presentation 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.

  3. Click Save.

扩展你的技能
了解培训
抢先获得新功能
加入 Office 预览体验计划

此信息是否有帮助?

谢谢您的反馈!

谢谢你的反馈! 可能需要转接到 Office 支持专员。

×