---
title: "Change Text in a Table"
---

```

## Purpose Summary

This page describes how to change text within table cells programmatically with Aspose.Words.

```

On this page we will look at how to change text in a table using Aspose.Words or Open XML SDK.

{{< nosnippet >}}

{{< tabs tabTotal="2" tabID="1" tabName1="Aspose.Words" tabName2="Open XML SDK" >}}

{{< tab tabNum="1" >}}

In Aspose.Words text in a table can be normally changed using the [Range.Replace](https://reference.aspose.com/words/net/aspose.words/range/replace/) method.

The following code example shows how to change text in a table:

{{< gist "aspose-words-gists" "5c43f00592b523d516037445f9a4bc66" "replace-table-text-aspose-words.cs" >}}

{{< /tab >}}

{{< tab tabNum="2" >}}

You can also do the same using the Open XML SDK. At the same time, note that it looks somewhat more complicated and more cumbersome.

The following code example shows how to change text in a table:

{{< gist "aspose-words-gists" "5c43f00592b523d516037445f9a4bc66" "replace-table-text-open-xml.cs" >}}

{{< /tab >}}

{{< /tabs >}}

{{< /nosnippet >}}

```

You can download the sample file of this example from [Aspose.Words GitHub](https://github.com/aspose-words/Aspose.Words-for-.NET/tree/master/Plugins/Aspose.Words%20Vs%20OpenXML%20Words/Aspose.Words%20VS%20OpenXML).

```

```

For more information about Aspose.Words features please visit [Working with Tables](/words/net/working-with-tables/).

```
