hi,
i'm new to c# after some time in assembly, and a bit of c++.
i'm trying to examine 2 cells and report back depending on their contents.
i want to test A11
- if it is empty - exit
- else test B11
- if thats empty then return D11, do the same for A12, B12 ....
- else exit
i'm trying to start off with just getting it working for A11, B11 ...
string result1 = (xlWorkSheet.get_Range("A11", "A11").Value2.ToString());
if (result1 != "")
{ string result2 = (xlWorkSheet.get_Range("B11", "B11").Value2.ToString());
if (result2 "")
{
string shutdown = (xlWorkSheet.get_Range("D11", "D11").Value2.ToString());
i cant seem to find the right syntax to get it working.
help much appreciated. thanks