VBA & Macro Problems

How to Count Characters in PowerPoint Slides and Notes Using VBA

Kushani NimanthikaKushani Nimanthika Nov 3, 2026 870 views

Question details

The user needs to find the total character count across all slides and speaker notes in a PowerPoint presentation.

How to Count Characters in PowerPoint Slides and Notes
Product
PowerPoint
Device & OS
not provided
Scenario
Checking the exact character length of a presentation to meet specific submission guidelines or strict length limits.
Observed behavior
PowerPoint lacks a built-in character count tool, requiring the use of a VBA macro to iterate through text boxes, shapes, and notes manually.
Before you start

Ensure you have saved a backup of your presentation and enabled the Developer tab in your PowerPoint ribbon so you can easily access the VBA Editor.

Solution 1Recommended

Use a Basic VBA Macro to Count Characters in Standard Shapes and Notes

This method uses a straightforward VBA script to loop through standard text boxes, placeholders, and speaker notes across your presentation to calculate the total character count.

Since PowerPoint does not natively track character metrics, writing a short script in the Visual Basic for Applications (VBA) Editor is the most efficient way to extract this data.

1
Open the VBA Editor

Launch your presentation in PowerPoint and press the Alt + F11 keys on your keyboard to open the Microsoft Visual Basic for Applications window.

2
Insert a New Module

In the VBA Editor, click on 'Insert' in the top menu bar, then select 'Module' to create a blank script window.

3
Input the Macro Code

Write or paste a VBA script designed to iterate through 'ActivePresentation.Slides'. The code should check 'Slide.Shapes' and 'Slide.NotesPage.Shapes' to see if they contain a text frame, and then add the character length to a running total.

4
Run the Macro

Press F5 or click the Run button to execute the code. A message box will pop up displaying the total character count for your standard slides and notes.

Use a Basic VBA Macro to Count Characters in Standard Shapes and Notes
Limitations: This basic script will only count text in standalone text boxes. It will ignore text hidden inside grouped shapes, SmartArt, or embedded charts.
Free Microsoft Office alternative

Try WPS Office for Seamless Presentation Management

While Microsoft PowerPoint requires complex VBA macros for simple tasks like character counting, WPS Office offers a free, lightweight, and highly compatible alternative. Enjoy an intuitive interface and a suite of built-in productivity tools designed to streamline your workflow.

  1. 1. Visit the Official Website: Navigate to the official WPS Office website and click the free download button for your operating system.
  2. 2. Install the Software: Run the downloaded installer and follow the simple on-screen instructions to set up the software suite.
  3. 3. Open Your Presentations: Launch WPS Presentation and easily open your existing PowerPoint files to enjoy a fast, reliable editing experience.
Fully compatible with Microsoft PowerPoint (.pptx, .ppt) formatsLightweight design ensures smooth performance on all desktop and mobile devicesBuilt-in document conversion tools make extracting and analyzing presentation text effortlessFree to use with a familiar, user-friendly interface that requires zero learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why is there no built-in character count feature in PowerPoint?

PowerPoint is designed primarily as a visual presentation tool rather than a heavy text editor. Because of this focus, traditional word processing metrics like word and character counts are deprioritized by Microsoft.

Can I find the presentation character count without using a VBA macro?

Yes. A reliable workaround is to export your presentation to Microsoft Word by navigating to File > Export > Create Handouts. Once the text is transferred to Word, you can use its native Word Count tool to view the total characters.

Will a VBA macro automatically count text located in hidden slides?

By default, VBA processes all slides in the ActivePresentation.Slides collection, including hidden ones. If you want to exclude hidden slides from your character count, you must add a conditional IF statement checking the SlideShowTransition.Hidden property.

How do I save a PowerPoint presentation after adding a VBA macro?

To preserve your macro code for future use, you must save your file as a PowerPoint Macro-Enabled Presentation (.pptm). Saving it in the standard .pptx format will strip the VBA code from the file.