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.
 

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

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.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,105,978
Messages
5,508,532
Members
408,688
Latest member
Bhojraj

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top