Hola, utilizo el siguiente código para crear un gráfico que coge los datos
de una LINEA (A4:H4) de EXCEL. Como puedo hacer para que cree el gráfico
cogiendo los datos de VARIAS lineas??? (A4:H4,A6:H6,A8:H8...)
Dim myChtObj As ChartObject
' add the chart
Set myChtObj = oSheet.ChartObjects.Add _
(Left:e, Width:75, Top:=pos, Height:"5)
With myChtObj.Chart
.ChartType = xlLine
.SetSourceData Source:=oSheet.Range("A4:H4"), PlotBy:=xlRows
.Location Where:=xlLocationAsObject, Name:=oSheet.Name
End With
Gracias y un saludo.
Iñaki Luengas
Leer las respuestas