WorkbookReplace Method (String, String)
Replaces a cell's value with a new string.

Namespace: Aspose.Cells
Assembly: Aspose.Cells (in Aspose.Cells.dll) Version: 19.10.0.0 (19.10)
Syntax
public int Replace(
	string placeHolder,
	string newValue
)

Parameters

placeHolder
Type: SystemString
Cell placeholder
newValue
Type: SystemString
String value to replace

Return Value

Type: Int32
Examples
 [C#]

 Workbook workbook = new Workbook();
 ......
 workbook.Replace("AnOldValue", "NewValue");

 [Visual Basic]

 Dim workbook As Workbook =  New Workbook() 
  ........
workbook.Replace("AnOldValue", "NewValue")
See Also