grafica

22/09/2006 - 18:45 por Johann Romero | Informe spam
Sub grafica()
Range("M10").Select
Range(Selection, Selection.End(xlDown)).Select
Charts.Add
ActiveChart.ChartType = xlLine
ActiveChart.SetSourceData Source:=Sheets("Simulador").Range("M10:M50")
ActiveChart.Location Where:=xlLocationAsObject, Name:="Simulador"
End Sub

****

Como hago para que en el RANGO que dice M10 a M50, pues sea lo que dice en
las primeras lineas, que abarque hasta el final de la seleccion?,
Selection.End

Gracias
 

Leer las respuestas

#1 Abraham
22/09/2006 - 21:33 | Informe spam
Creo que entendi tu pregunta, mira aqui:

http://lawebdelprogramador.com/news...new.php?id7&texto=Excel&n190648&n2=1&n3=0&n4=0&n5=0&n6=0&n7=0&n8=0&n9=0&n0=0

Abraham

Preguntas similares