在2003 excel下运行VBA micro没有问题但在2007 excel下报错。是关于画图中scale type 的问题。在网上也搜了很多同样的问题但没找到解决办法,现求教版上的大虾们,如能解答,将万分感谢!
部分code:
With ActiveChart.Axes(xlCategory)
.MinimumScale = 0
.MaximumScale = 100
.MinorUnit = 5
.MajorUnit = 10
.Crosses = xlAutomatic
.ReversePlotOrder = False
.ScaleType = xlLinear
.DisplayUnit = xlNone
End With
scale type中xlLinear 在2007 excel中会报错,不知该如何修正?