Please Help with graph question

egraham3

Board Regular
Joined
Jun 14, 2010
Messages
200
I am still looking for a way to find the max in a range in my series, and add a marker to only that point on my XY scatter plot.

i dont think its that hard, i just cant get the code to act right.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

egraham3

Board Regular
Joined
Jun 14, 2010
Messages
200
i should have clarified more clearly,

im adding this graph through VBA. any other links? lol
 

egraham3

Board Regular
Joined
Jun 14, 2010
Messages
200
this is my code

Code:
 Set timeRange = newSH.Range("H2", Range("H2").End(xlDown))
    Set heightRange = newSH.Range("I2", Range("I2").End(xlDown))
    Set tempRange = newSH.Range("J2", Range("J2").End(xlDown))
    
    
    Application.ScreenUpdating = False
        'Adds chart, with 2 series (time vs height rise) and (time vs temp rise)
    With newSH.ChartObjects.Add _
            (Left:=428, Width:=498, Top:=0, Height:=380)
            .Chart.ChartType = xlXYScatterSmoothNoMarkers
            .Select
        End With
    With ActiveChart.SeriesCollection.NewSeries
    .XValues = timeRange
    .Values = heightRange
    .Name = "Foam Height (in.)"
    With .Border
        .ColorIndex = 5
        .Weight = xlThick
        .LineStyle = xlContinuous
        End With
    End With

i want to find max value in height range, and add a marker.
 

Forum statistics

Threads
1,176,721
Messages
5,904,630
Members
435,102
Latest member
Randy N

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top