# Search Text in PPT Presentations using C++

> Search and replace text in PPT presentations in C++. Use Aspose.Slides for C++ to find text in presentation files.

Source: https://products.aspose.com/slides/cpp/search/ppt/
Updated: 2026-07-09



## Search and Replace Text in PPT Presentation via C++

Aspose.Slides for C++ lets you search text in PPT presentations and replace matching content. Use `SlideUtil::FindAndReplaceText` with a `Presentation` object to search slide text and save the updated presentation.

### Search Text in PPT Presentation using C++

```cpp
auto presentation = MakeObject<Presentation>(u"presentation.ppt");

SlideUtil::FindAndReplaceText(presentation, true, u"Quarterly Report", u"Annual Report", nullptr);
presentation->Save(u"updated-presentation.ppt", SaveFormat::Ppt);
presentation->Dispose();
```

## How to Search Text in PPT via C++

These are the steps to search text in PPT files.

Load the PPT file with the `Presentation` class.

Use the [`FindAndReplaceText`](https://reference.aspose.com/slides/cpp/aspose.slides.util/slideutil/findandreplacetext/) method to find and replace text.

Save the updated file with `SaveFormat::Ppt`.

## Other Supported Search Formats
