PDA

Click to See Complete Forum and Search --> : Excel Find-Function


vbzero
Sep 8th, 2002, 04:54 AM
if(WorksheetObj.Cells.Find("b", 0, 0, 0, 0,
Excel.XlSearchDirection.xlNext, 0, 0, 0) != null)
{
MessageBox.Show("ok");
}


This code returns a "Type mismatch" error.
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?