放物線を描く一例です。
放物線のy値をセルに書き込んでおいてから、それをグラフ化するパターンです。
Sub Example1()
Dim x As Single, y As Single
Dim c As Integer
c = 0
、
For x = -3 To 3 Step 0.01
y = x * x
Cells(1 + c, 1) = y
c = c + 1
Next
ActiveSheet.Shapes.AddChart2(227, xlLineMarkers, 100, 100, 200, 500).Select
ActiveChart.SetSourceData Source:=Range("Sheet1!$A$1:$A$" & Cells(1, 1).End(xlDown).Row)
End Sub