3
Answers

Excel and C#

Ask a question
annicabaart

annicabaart

19y
2.2k
1
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)