With Sheets("Report").ChartObjects.Add(...)
    .Chart.Axes(xlCategory).MinimumScale = RoundTo50(Sheets(sheetName).Range("M4"))
    .Chart.Axes(xlCategory).MaximumScale = RoundTo50(Sheets(sheetName).Range("M124"))
    .Chart.Axes(xlCategory).MajorUnit = RoundTo50((.Chart.Axes(xlCategory).MaximumScale - .Chart.Axes(xlCategory).MinimumScale) / 12)
    .Chart.Axes(xlCategory).MinorUnit = .Chart.Axes(xlCategory).MajorUnit / 3

 

With Charts("Chart1").Axes(xlValue)
 .DisplayUnit = xlHundreds
 .HasTitle = True
 .AxisTitle.Caption = "Rebate Amounts"
End With

 

REF:

https://stackoverflow.com/questions/10110594/how-to-round-off-x-ticklabels-to-the-nearest-50

 

相关文章:

  • 2021-05-02
  • 2021-07-18
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2021-12-12
  • 2021-07-29
  • 2022-02-15
  • 2021-10-11
  • 2021-08-04
  • 2021-10-28
相关资源
相似解决方案