3
Reply

Excel and C#

annicabaart

annicabaart

Mar 11 2005 7:53 AM
2.2k
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)

Answers (3)