forum

Home / DeveloperSection / Forums / How to access a cell in Excel worksheet using C#

How to access a cell in Excel worksheet using C#

Anonymous User 1967 13-Nov-2013

I want to access a cell in Excel worksheet using C#. I tried to use the followed code:

if (xlWorksheet.Cells[k + 5, 0] ==
Convert.ToString(ent.Cells[i, 3].Value))
{
     p = k;
}

But its not working.

Any help will be appreciated.


c# c# 
Updated on 13-Nov-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By