K
-kve-
Hi,
I am writing a C# program that interacts with Excel.
When I have a range in Excel that contains a few "horizontal" cells (e.g.
"A1" to "D1"), I can fill the range with values from an array:
Microsoft.Office.Interop.Excel.Range rangeSeries = wsData.get_Range("A1",
"D1");
range.set_Value(missing, array);
But when I try to do the same thing, but with a range with vertical cells,
all the cells in the range get the value of the first array field.
Anyone knows how this can be done?
I am writing a C# program that interacts with Excel.
When I have a range in Excel that contains a few "horizontal" cells (e.g.
"A1" to "D1"), I can fill the range with values from an array:
Microsoft.Office.Interop.Excel.Range rangeSeries = wsData.get_Range("A1",
"D1");
range.set_Value(missing, array);
But when I try to do the same thing, but with a range with vertical cells,
all the cells in the range get the value of the first array field.
Anyone knows how this can be done?