Hi All,
I can define columns and data for required columns and So on for dynamin range
But how do i convert it into complex charts in the excel file under Tab "Chart Data"
Can anyone advise
Now there are 2 questions here
I can define columns and data for required columns and So on for dynamin range
But how do i convert it into complex charts in the excel file under Tab "Chart Data"
Can anyone advise
Sub create_graph()
Dim ws As Excel.Worksheet
Dim x As Range
Dim y As Range
Set ws = ActiveWorkbook.Worksheets("Chart Data")
Set x = ws.Range("B8:B" & ws.Cells(ws.Rows.Count, "B").End(xlUp).Row)
Set y = ws.Range("C8:B" & ws.Cells(ws.Rows.Count, "C").End(xlUp).Row)
ws.Shapes.AddChart.Select
With ActiveChart
.ChartType = xlLine
.SeriesCollection.NewSeries
.SeriesCollection(1).Values = x
End With
End Sub
Now there are 2 questions here
- Can i create a chart where i can ignore blanks and N/A so my data can alight better in Chart
- Can you help me to with additional code to create the image chart - This option is better for me