Boogerbut74
New Member
- Joined
- Oct 17, 2022
- Messages
- 26
- Office Version
- 365
- Platform
- Windows
VBA Code:
Sub graph_creator()
'Create a chart
Set cht = ActiveSheet.ChartObjects.Add( _
Left:=ActiveCell.Left, _
Width:=450, _
Top:=ActiveCell.Top, _
Height:=250)
'Give chart x and y data
Set xRange = Range("=$D10:$D150 ")
Set yRange = Range("=$F10:$V2360")
ChartObjects.SeriesCollection(1).XValues = "=Raw!xRange"
ChartObjects.SeriesCollection(1).Values = "=Raw!yRange"
'Determine the chart type
cht.Chart.ChartType = xlXYScatterLines
End Sub
Right now my graph didn't do the x data so i tried this but it didn't work so if anyone has solutions please let me know thank you.