ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   What is wrong with this line? (https://www.excelbanter.com/charts-charting-excel/101811-what-wrong-line.html)

ChartsToBe

What is wrong with this line?
 
mySeries[1] = mySeriesCollection.Add(myWorksheet.get_Range("D2", "D13"),
Excel.XlRowCol.xlColumns, false, false, false);

Causes this error... System.InvalidCastException was unhandled
OleAut reported a type mismatch.

What am I doing wrong?



All times are GMT +1. The time now is 12:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com