Курсовая работа: Проект программного модуля для нахождения корня уравнения
MsgBox ("Проверьте введенные данные!")
Exit Sub
End If
k = 1
For j = CDbl(TextBox1.Value) To CDbl(TextBox2.Value) Step 0.01
Cells(k, 1) = j
Cells(k, 2) = f(j)
k = k + 1
Next j
Set ry = Sheets(ActiveSheet.Name).Range(Cells(1, 2), Cells(k, 2))
Set rx = Sheets(ActiveSheet.Name).Range(Cells(1, 1), Cells(k, 1))
Charts.Add
ActiveChart.ChartType = xlLine
ActiveChart.SetSourceData Source:=ry, PlotBy:=xlColumns
ActiveChart.SeriesCollection(1).XValues = "=" & rx.Address(ReferenceStyle:=xlR1C1, external:=True)
ActiveChart.Location Where:=xlLocationAsObject, Name:="Лист1"
With ActiveChart
.HasTitle = False
.Axes(xlCategory, xlPrimary).HasTitle = False
.Axes(xlValue, xlPrimary).HasTitle = False
End With
With ActiveChart.Axes(xlCategory)
.HasMajorGridlines = False
.HasMinorGridlines = False
End With
With ActiveChart.Axes(xlValue)
.HasMajorGridlines = False
.HasMinorGridlines = False
End With