How to Remove Text from PowerPoint Without Deleting Formatting
Question details
The user needs a method to bulk remove text from multiple PowerPoint slides without losing the underlying formatting, shapes, and charts.

- Product
- PowerPoint
- Device & OS
- not provided
- Scenario
- Editing a presentation with dozens of slides where the text content needs to be cleared, but the design templates, shape properties, and text box formats must remain intact.
- Observed behavior
- Manually selecting and deleting text slide by slide is too time-consuming and increases the risk of accidentally deleting the formatted elements entirely.
Before attempting to run any automated scripts, ensure that the Developer tab is enabled in your PowerPoint ribbon and that your macro security settings allow the execution of local VBA codes.
Use a VBA Macro to Clear Text Automatically
Running a VBA script allows you to iterate through all slides and shapes, deleting only the text content while keeping your text boxes, fonts, and shape designs perfectly intact.
A VBA macro can be programmed to look specifically for text frames within standard shapes and clear them. However, since charts and standard text boxes are categorized differently in PowerPoint's object model, the macro must handle regular text frames and chart elements separately.
Launch your PowerPoint presentation and press 'Alt + F11' on your keyboard to open the Microsoft Visual Basic for Applications window.
In the VBA Editor, click on 'Insert' in the top menu bar and select 'Module' to create a blank script window.
Write a script that loops through 'ActivePresentation.Slides' and then 'Slide.Shapes'. Use an IF statement to check 'If Shape.HasTextFrame Then' and set 'Shape.TextFrame.TextRange.Text = ""' to clear the standard text.
Within the same loop, add an 'ElseIf Shape.HasChart' condition to specifically target and clear the text in chart titles or data labels without deleting the chart object itself.
Click anywhere inside your code block and press 'F5' to run the macro. The script will instantly strip the text from your slides while leaving all formatting untouched.

Clear Text Quickly Using the Outline View
If you prefer not to use macros or write code, the Outline View provides a plain-text overview of your slides, allowing you to highlight and delete text rapidly.
Easily Clear Text and Edit Presentations with WPS Office
WPS Presentation allows you to efficiently manage slide layouts, mass-delete text using the Outline view, and customize Master Slides without writing complex code.
- 1. Open Your Presentation: Launch WPS Presentation and open your .pptx file.
- 2. Access the Outline View: Navigate to the 'View' tab on the top ribbon and select 'Outline'.
- 3. Delete Text Rapidly: Highlight the text content in the left pane and press 'Delete'. This removes the words while leaving the text boxes and formatting intact.
- 4. Save as a Template: Once the text is cleared, go to 'Menu' > 'Save As' and choose the Presentation Template format to reuse your designs later.

Frequently Asked Questions
Why did my entire text box disappear when I pressed Delete?
If you click the outer edge of a text box so it has a solid line before pressing Delete, the entire shape is removed. To keep the formatting and the box, you must click inside the box to place your cursor, highlight the text characters, and then press Delete.
Can I apply the VBA macro to just one specific slide?
Yes, you can modify the VBA script to target 'ActiveWindow.View.Slide' instead of iterating through the entire 'ActivePresentation.Slides' collection. This will restrict the text clearing action to only your currently selected slide.
Will clearing text remove my custom fonts and colors?
No. When you use the VBA method or carefully delete text from inside the text box, the underlying shape retains its font styles, sizes, and color properties. Any new text you type into that box will automatically adopt the original custom formatting.




