How to know whether replace success or fail?
- by YUG
bool rep = xlWorkSheet.Cells.Replace(textBox1.Text,
textBox2.Text,
Excel.XlLookAt.xlWhole,
Excel.XlSearchOrder.xlByRows,
false,
Type.Missing,
Type.Missing,
Type.Missing);