app.Columns("C:C").Select()
Selection.NumberFormat = "0.00"
Range("K6").Select()
Charts.Add()
ActiveChart.ChartType = .xlXYScatterSmoothNoMarkers
ActiveChart.SetSourceData(Source:=app.Sheets("Sheet1").Range("B:B,C:C"), PlotBy _
:=.xlrowcol.xlColumns)
ActiveChart.Location(Where:=Xlchartlocation.xllocationasnewsheet)
With ActiveChart
.HasTitle = False
.HasAxes(.xlCategory, excel.xlaxisgroup.xlPrimary).HasTitle = False
.Axes(.xlValue, xlPrimary).HasTitle = False
End With
ActiveChart.Axes(xlValue).Select()
With ActiveChart.Axes(xlValue)
.MinimumScale = -5
.MaximumScale = 5
.MinorUnitIsAuto = True
.MajorUnitIsAuto = True
.Crosses = excel.xlAutomatic
.ReversePlotOrder = False
.ScaleType = excel.xlLinear
.DisplayUnit = excel.xlNone
End With
ActiveChart.SeriesCollection(1).Select()
ActiveChart.Axes(xlCategory).Select()
With ActiveChart.Axes(excel.xlCategory)
.MinimumScale = 0
.MaximumScale = 1024
.MinorUnitIsAuto = True
.MajorUnitIsAuto = True
.Crosses = excel.xlAutomatic
.ReversePlotOrder = False
.ScaleType = xlLinear
.DisplayUnit = xlNone
End With
ActiveChart.SeriesCollection(1).Select()
ActiveChart.SeriesCollection(1).Points(147).Select()
ActiveChart.SeriesCollection(1).Points(102).Select()
ActiveChart.SeriesCollection(1).Points(14).Select()
ActiveChart.SeriesCollection(1).Points(38).Select()
ActiveChart.SeriesCollection(1).Points(59).Select()
ActiveChart.SeriesCollection(1).Points(39).Select()
ActiveChart.SeriesCollection(1).Points(25).Select()
ActiveChart.SeriesCollection(1).Points(50).Select()
ActiveChart.SeriesCollection(1).Points(103).Select()
ActiveChart.SeriesCollection(1).Points(83).Select()
ActiveChart.SeriesCollection(1).Points(62).Select()
ActiveChart.PlotArea.Select()
ActiveChart.SeriesCollection(1).Select()
ActiveChart.SeriesCollection(1).Points(71).Select()
ActiveChart.PlotArea.Select()
ActiveChart.SeriesCollection(1).Select()
With app.Selection.Border
.ColorIndex = 57
.Weight = xlThick
.LineStyle = xlContinuous
End With
With app.Selection
.MarkerBackgroundColorIndex = xlNone
.MarkerForegroundColorIndex = xlNone
.MarkerStyle = xlNone
.Smooth = True
.MarkerSize = 3
.Shadow = False
End With
ActiveChart.PlotArea.Select()
ActiveChart.Deselect()
ActiveChart.ChartArea.Select()
With ActiveChart
.HasAxis(xlCategory, xlPrimary) = False
.HasAxis(xlValue, xlPrimary) = False
End With
ActiveChart.Axes(excel.xlCategory, excel.xlPrimary).CategoryType = xlAutomatic
With app.ActiveChart.Axes(xlCategory)
.HasMajorGridlines = False
.HasMinorGridlines = False
End With
With ActiveChart.Axes(xlValue)
.HasMajorGridlines = False
.HasMinorGridlines = False
End With
ActiveChart.HasLegend = False
ActiveChart.PlotArea.Select()
With Selection.Border
.ColorIndex = 16
.Weight = xlThin
.LineStyle = xlContinuous
End With
Selection.Fill.UserPicture(PictureFile:= _
"C:\Documents and Settings\sbishop\Desktop\SCOPEcrop.bmp")
Selection.Fill.Visible = True