Returns the presentation the user currently has open.
class SlidesApp method .getActivePresentation()
SlidesApp is the Apps Script service.
.getActivePresentation() is the method name you will see after a dot in your code.
What it does
Why it's used
- Update the deck the user is presenting right now.
- Bound Slides scripts start here like sheet-bound tools.
Common errors
- Forgetting parentheses on getActivePresentation. Write SlidesApp.getActivePresentation(), not SlidesApp.getActivePresentation or getActivePresentation by itself.
- Skipping dots between chained calls. Each step needs a dot, like SlidesApp.getActivePresentation().
- Adding spaces where they do not belong. Write SlidesApp.getActivePresentation(), not SlidesApp .getActivePresentation(), SlidesApp.getActivePresentation (), or SlidesApp . getActivePresentation().
- Wrong capitalization. Use SlidesApp and getActivePresentation, not slidesapp or getactivepresentation.
Explore
Related methods
-
.openById()
Opens an existing presentation by its file ID.
-
.getSlides()
Returns every slide in the presentation.
-
.appendSlide()
Adds a new slide to the end of the presentation.
-
.create()
Creates a new blank Google Slides presentation.
-
.getPageWidth()
Returns the width of a slide in points.
More Apps Script
Better Sheets tutorials
No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.
Related blog posts
Written guides about SlidesApp.getActivePresentation().
How to Use Google Sheets as a Website Database
Did you know you can use Google Apps Script to turn a Google Sheet into a free, auto-syncing database for your website? This guide shows you exactly how to set it up. You’ll prepare your spreadsheet, write a few lines of code and publish your site. Don’t worry if you’re not a developer, we’ll walk you through it. Why Use Google Sheets as a Database? For small projects, Google Sheets offers many advantages over traditional databases: * Free hosting and storage * Easy to edit data without...
Read post →Learn Google Sheets Apps Script
Learning Google Sheets coding and Apps Script can have several outcomes and results. Become more productive, more of an asset to your company. No matter if you work there or if you own the company.
Read post →Roasting Google Sheets
Dive into Google Sheets with Expert Insights. Free Tutorials, Templates & Tools Await You. Enhance Your Skills Today!
Read post →