C#Excel查找和replace没有popup对话框显示
当我在C#中导出到Excel时,我想replace一些像%find%这样的string。
如果replace返回null,例如“没有像%find%这样的string”,它将总是显示一个popup对话框,告诉我找不到replace。
我如何隐藏popup对话框?
**My replace method is:`xSheet.Cells.Replace(strong textwhat, replace);`
试试这个: http : //msdn.microsoft.com/en-us/library/microsoft.office.interop.excel._application.displayalerts(v=office.11).aspx