F
Fred Russell
Straight line charts work fine using VBA, but I couldn't get Stock charts to
work at all.
I used the following code:
Charts.Add
ActiveChart.ChartType = xlStockHLC
etc.
etc.
When running the code I get the following error message -
Run-time error '1004'
Method 'ChartType' of object '_Chart' failed.
When debugging, the line "ActiveChart.ChartType = xlStockHLC" is highlighted
in yellow and the values on both sides of the = sign are different. The left
side (ActiveChart.ChartType) = 55 and the right side (xlStockHLC) = 81.
Why would this happen with an assignment of chart type?
Best regards,
Fred
work at all.
I used the following code:
Charts.Add
ActiveChart.ChartType = xlStockHLC
etc.
etc.
When running the code I get the following error message -
Run-time error '1004'
Method 'ChartType' of object '_Chart' failed.
When debugging, the line "ActiveChart.ChartType = xlStockHLC" is highlighted
in yellow and the values on both sides of the = sign are different. The left
side (ActiveChart.ChartType) = 55 and the right side (xlStockHLC) = 81.
Why would this happen with an assignment of chart type?
Best regards,
Fred