Get a VBA Project

Introduction

VBA projects in PowerPoint allow users to create complex automations and customizations for presentations. These projects can include various modules, forms, and classes that work together to perform specific tasks. Use the following method to get a VBA project from a presentation.

GetVbaProject

API Information

API Type Description Resource
/slides/{name}/vbaProject GET Returns a VBA project from a presentation saved in a storage. GetVbaProject

Request Parameters

Name Type Location Required Description
name string path true The name of a presentation file.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation file.
storage string query false The name of the storage contaning the folder.

Examples

In the default storage, the document MyPresentation.pptm contains a VBA project. Get the number of modules in the project.

The VBA project

cURL Solution

SDK Solutions

SDKs

Check Available SDKs to learn how to add an SDK to your project.