How to know whether replace success or fail?

Posted by YUG on Stack Overflow See other posts from Stack Overflow or by YUG
Published on 2012-06-06T08:50:18Z Indexed on 2012/06/06 10:40 UTC
Read the original article Hit count: 276

Filed under:
|
bool rep = xlWorkSheet.Cells.Replace(textBox1.Text, 
                                     textBox2.Text, 
                                     Excel.XlLookAt.xlWhole, 
                                     Excel.XlSearchOrder.xlByRows, 
                                     false, 
                                     Type.Missing, 
                                     Type.Missing, 
                                     Type.Missing);

© Stack Overflow or respective owner

Related posts about c#

Related posts about excel-interop