The information in this article applies to:
SYMPTOMSIn Microsoft Excel version 5.0, you may receive one of the following error messages when you attempt to set or return the x axis scale properties for an xy (scatter) chart:
-or-
CAUSEThe following Visual Basic axis class properties for the x axis of an xy (scatter) chart may cause the above error messages: <object>.Axes(xlCategory).MinorUnit WORKAROUNDTo set any of the above properties when the axis in question is the x axis in an (xy) scatter chart, use the Application.ExecuteExcel4Macro method with the Microsoft Excel 4.0 SCALE() macro command. Below is the syntax of the Visual Basic command:
The following values are acceptable for the arguments for this method
For example, to set the minimum scale of the X axis to 5, the maximum
scale to 20, and reverse the plot order of the axis, you would use
this command:
Note that the above macro will work only if the chart is created as a
separate chart sheet (that is, it will not work with a chart embedded on a
worksheet).
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel for Windows version 5.0c. MORE INFORMATIONREFERENCESFor more information about ExecuteExcel4Macro choose the search button in Visual Basic Help and type: ExecuteExcel4Macro Additional query words:
Keywords : kbprg |
Last Reviewed: October 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |