Excel and C#
Hello,
I am trying to make an .NET application in C# together with Excel. What i am looking for is a function that can detect the last row in the excel document or a function that can tell me that this cell has no value, that is is just empty, not filled in. I have tried to something like :
Excel.Range gegevens = (Excel.Range)((Excel.Worksheet)excelApp.ActiveWorkbook.Sheets[1]).get_Range("A2","A2");
if(gegevens.value2 = "")
{
......
}
but .NET doesn't accept this because an empty cell is not the same as just an empty string
Please help me ;o)
Thanks in advance!!
Bye bye ;o)
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

mibuytRank #3,026 · 476 pointsPosted Mar 11, 2005, 6:25 AM EST
annicabaart7 pointsPosted Mar 11, 2005, 8:49 AM EST
mibuytRank #3,026 · 476 pointsPosted Mar 11, 2005, 2:34 PM EST