Thread: Charts in VBA
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rui Álvares Rui Álvares is offline
external usenet poster
 
Posts: 8
Default Charts in VBA

Hi,

I have the code shown below, that creates a chart based in the data present
in sheet "Sheet_1":

Charts.Add
ActiveChart.ChartType = xlXYScatterLinesNoMarkers
ActiveChart.SetSourceData Source:= _
Sheets("Sheet_1").Range("A1:B382"), PlotBy:=xlColumns
ActiveChart.Location Whe=xlLocationAsObject, Name:="Grafics"
With ActiveChart