Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Aja,
I expect the problem is that XL is expecting a numeric value. Try ActiveChart.Axes(xlCategory) = DateSerial(2000,1,1) HTH Peter Beach "Aja" wrote in message ... Hello, How can I get my vba code below to set the minimum scale property of the axis class. The code on the line with the asterisk generates an error regarding min scale when I try to run it. The error is: 'Unable to set the minimum scale property of the axis class' Sub macrotitlesize() For i = 0 To 12 ActiveSheet.ChartObjects(i + 1).Activate ActiveChart.Axes(xlCategory).MajorUnitScale = xlYears ActiveChart.Axes(xlCategory).MinorUnitScale = xlMonths ActiveChart.Axes(xlCategory).Crosses = xlCustom ActiveChart.Axes(xlCategory).AxisBetweenCategories = True ActiveChart.Axes(xlCategory).ReversePlotOrder = False * ActiveChart.Axes(xlCategory).MinimumScale = "1/1/2000" ActiveChart.Axes(xlCategory).MaximumScaleIsAuto = True ActiveChart.Axes(xlCategory).MajorUnit = 1 ActiveChart.Axes(xlCategory).MinorUnitIsAuto = True ActiveChart.Axes(xlCategory).MinorUnit = 1 ActiveChart.Axes(xlCategory).CrossesAt = "1/1/2000" Next i End Sub Nor am I able to set the class for any of the statements below the asterisk. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
scale to page error in Excel 2007 | Excel Discussion (Misc queries) | |||
Code about setting Y Axes scale. | Charts and Charting in Excel | |||
How do I automate the minimum and maximum x scale? | Charts and Charting in Excel | |||
graphics scale minimum | New Users to Excel | |||
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) | Excel Programming |