Using a table’s range object you can replace text within the table. However, there are currently restrictions which prevent any replacement with special characters being made so care must be taken to ensure that the replacement string does not carry over more than one paragraph or cell. If such a replacement is made which spans across multiple nodes, such as paragraphs or cells, then an exception is thrown.
Normally the replacement of text should be done at the cell level (per cell) or at the paragraph level.
Example
Shows how to replace all instances of string of text in a table and cell.
[Java]
Document doc = new Document(getMyDir() + "Table.SimpleTable.doc");
// Get the first table in the document.
Table table = (Table)doc.getChild(NodeType.TABLE, 0, true);
// Replace any instances of our string in the entire table.
table.getRange().replace("Carrots", "Eggs", true, true);
// Replace any instances of our string in the last cell of the table only.
table.getLastRow().getLastCell().getRange().replace("50", "20", true, true);
doc.save(getMyDir() + "Table.ReplaceCellText Out.docx");