|
Hello,
I would think this would be a rather easy task but it has thoroughly confused me.
I am trying to take the value in cell[1,10], which is the result of a formula, and assign it to a variable in my code. So far, I have been unable to do this. I am using Excel 2003, C#.
This is my code:
If (dbConnection.Open != null)
{
Cells[1,10] = "Success";
}
//Below is what does not work.
string aString = (string)cells[1,10];
I have also tried,
string aString = Cells.get_Value(Cells[1,10]);
Any help would be very much appreciated.
Thanks,
ds
dsMqplp |