This code returns a "Type mismatch" error.Code:if(WorksheetObj.Cells.Find("b", 0, 0, 0, 0, Excel.XlSearchDirection.xlNext, 0, 0, 0) != null) { MessageBox.Show("ok"); }
In Visual Basic, this function requires 2 parameters.
In C# it requires 9...
So how the hell can I search for the letter "b" in my cells?
Who knows the parameters to set? They're all from the type
"object".
Any ideas?




Reply With Quote