在sparkline上设置自定义轴的值

我试图在我的sparkline中设置自定义值,但是,我不断收到Run-time error: Object doesn't support this property or method 。 我的.Custom值部分在哪里出错?

  With spark .Points.Markers.Visible = True .Points.Markers.Color.Color = vbBlack .CustomMinScaleValue = -0.1 'error thrown here .CustomMaxScaleValue = 1.2 'error will most likely be thrown here End With 

仅当指定的SparkVerticalAxis对象的MinScaleType属性设置为xlSparkScaleCustom(3)时,才能返回或设置CustomMinScaleValue属性。

https://msdn.microsoft.com/en-us/library/office/ff194837.aspx

CustomMaxScaleValue类似的问题

未经testing:

 With spark .Points.Markers.Visible = True .Points.Markers.Color.Color = vbBlack .Axes.Vertical.MinScaleType = xlSparkScaleCustom '<<< .CustomMinScaleValue = -0.1 .Axes.Vertical.MaxScaleType = xlSparkScaleCustom '<<< .CustomMaxScaleValue = 1.2 End With