Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
ScaleType error
I have some VBA code that works fine in Excel 2003, but throws an error in
Excel 2007. Here is the part of the code that fails: With ActiveChart.Axes(xlCategory, xlSecondary) .MinimumScale = X2Min .MaximumScale = X2Max .MinorUnitIsAuto = True .MajorUnit = BinSize .Crosses = xlMaximum .ReversePlotOrder = False .ScaleType = xlLinear .DisplayUnit = xlNone End With All of these lines work except for .ScaleType = xlLinear. When that line is reached, the error: "Method €˜ScaleType of object €˜Axis failed" pops up. I tried changing it to .ScaleType = xlScaleLinear, but that errors out also. Does anybody have any ideas? This is pretty frustrating... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Problem with ScaleType propert for Axis object | Excel Programming | |||
Error handling error # 1004 Run-time error | Excel Programming | |||
Error Handling - On Error GoTo doesn't trap error successfully | Excel Programming | |||
Automation Error, Unknown Error. Error value - 440 | Excel Programming |