Bonjour,
je veux adapter l'echelle de l'axe X sur un graphique excel
ma macro vba plante lorsque je l'éxécute :
ActiveChart.Axes(xlCategory).Select
With ActiveChart.Axes(xlCategory)
.CategoryType = xlCategoryScale
.MinimumScale = BorneInf
.MaximumScaleIsAuto = True
.MinorUnitIsAuto = True
.MajorUnitIsAuto = True
.Crosses = xlCustom
.CrossesAt = BorneInf
.ReversePlotOrder = False
.ScaleType = xlLinear
.DisplayUnit = xlNone
End With
Je ne comprend pas
Elle plante sur .MinimumScale = BorneInf (=0 dans mon premier graphique)
Mes données sont :
<colgroup><col style=\"WIDTH: 60pt\" span=\"2\" width=\"80\" /></colgroup>----
0, 0, ----
10, #N/A, ----
20, #N/A, ----
30, #N/A, ----
40, #N/A, ----
50, #N/A, ----
60, #N/A, ----
70, #N/A, ----
80, #N/A, ----
90, #N/A, ----
100, #N/A, ----
110, #N/A, ----
120, #N/A, ----
130, #N/A, ----
140, 45, ----
150, 24, ----
160, #N/A, ----
170, 48, ----
180, #N/A, ----
190, #N/A, ----
200, #N/A, ----
210, #N/A, ----
220, #N/A, ----
230, #N/A, ----
240, #N/A, ----
250
, #N/A
Merci de votre aide,
relax62