Okay ... I got the following code to work
Excel.Range rng = (Excel.Range)Globals.Sheet10.Application.get_Range("B45", "C80"); |
for (int i = 0; i < rng.Count; i++) |
{ |
Excel.Range cell = (Excel.Range)rng[i, 1]; |
MessageBox.Show(cell.Value2.ToString()); |
} |
But on the first line, how can I reference a named range : "myRange" in the worksheet which goes from b45 to c80?