Microsoft KB Archive/168953
Article ID: 168953
Article Last Modified on 10/22/2000
- Microsoft Excel 97 Standard Edition
This article was previously published under Q168953
In Microsoft Excel 97, if you run a Visual Basic for Applications macro that attempts to add a shadow to a series in a chart, you may receive the following error message:
If you click Details, you receive an error message similar to the following:
This problem occurs if you attempt to add a shadow to a series in a 3-D Surface chart.
To prevent this problem from occurring, do not use a macro to attempt to add a shadow to a series in a 3-D Surface chart. If you do not know with what type of chart you will be working, you may need to modify your macro so that it checks the type of the chart before attempting to add a shadow to a series within the chart.
By design, you cannot add a shadow to a series in a 3-D Surface chart in Microsoft Excel.
The line of Visual Basic code that causes the error to occur is similar to the following:
ActiveChart.SeriesCollection(1).Shadow = True
In earlier versions of Microsoft Excel, you will receive the following error message if you run this line of code when the active chart is a 3-D Surface chart:
Run-time error '1000': Series does not have Shadow property
Additional query words: XL97
Keywords: kberrmsg kbprb KB168953