Issue with automatic range on excel's graph

Baptiste 25 Reputation points
2024-02-01T07:38:10.01+00:00

Good morning, I have an isue with my microsoft graph : I use one graph to show results that change over time and assay. So to display correctly the values I ticked automatic range, it worked perfectly for my exemple but now it shows the values on a small part of the graph with the same parameters... what can I do ? 6aa07283-4dc1-4d2b-8134-71b056c253cb (964×287)

b9da0cf7-b88e-4d0e-879e-f2e516df0381 (1000×266)

If I manually change the values from 0.018 to 0.02 it works ; but not from 0.018 to 0.009 ... Thanks for reading.

Microsoft 365 and Office | Excel | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Baptiste 25 Reputation points
    2024-02-02T13:48:26.8433333+00:00

    Ok so I saw that we can make a macro to select x and y min/max values so I made this macro and it display what I want. But still no clue why the automatic range didn't work properly ... maybe my difference betwwen min and max is to small ... Linked to a button ActiveSheet.ChartObjects("Graphique 7").Activate ActiveChart.Axes(xlCategory).Select ActiveChart.Axes(xlCategory).MinimumScale = Range("P63") - 1 / 100 * Range("P63") ActiveChart.Axes(xlCategory).MaximumScale = Range("X63") + 1 / 100 * Range("X63") Application.CommandBars("Format Object").Visible = False

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.