XL: "Plot Empty Cells As Interpolated" Option Is Unavailable (302672)
The information in this article applies to:
- Microsoft Excel 2000
- Microsoft Excel 2002
This article was previously published under Q302672 SYMPTOMS
The Plot empty cells as Interpolated option is unavailable unless all series on the chart are plotted as lines.
NOTE: To view this option, click Options on the Tools menu, and then click the Chart tab.
WORKAROUND
To work around this problem on a single chart, use a Microsoft Visual Basic for Applications (VBA) macro to enable the feature. To do this, follow these steps:
- Select the chart on which you are experiencing the problem.
- On the Tools menu, point to Macro, and then click Visual Basic Editor.
- In the Project Explorer, select the project that you are working on.
- On the Insert menu, click Module.
Excel inserts a new code module and displays its Code window on the right side of the screen. - Type the following macro in the Code window:
Sub MyInterpolate()
ActiveChart.DisplayBlanksAs = xlInterpolated
End Sub
- On the File menu, click Close and Return to Microsoft Excel.
- On the Tools menu, point to Macro, and then click Macros.
- In the list of macros, click MyInterpolate, and then click Run.
If you need to apply this workaround to new charts, you can create a user-defined AutoFormat from the chart that you just modified. To do this, follow these steps:
- Select the chart that you just modified with the VBA macro.
- On the Chart menu, click Chart Type.
- On the Custom Types tab, click User-defined under Select from.
- Click Add.
- In the Name box, type a name for the new chart type, such as Interpolated Line-Column. You can also type a description of the chart type in the Description box. Click OK.
- Click OK.
To create a new chart that uses this user-defined template, follow these steps:
- Select your chart data, and then click Chart on the Insert menu.
- On the Custom Types tab, click User-defined under Select from.
- In the list of user-defined chart types, click the chart type that you created earlier, and then click Finish.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. REFERENCES
For more information about how to use the sample code in this article, click
the article number below to view the article in the Microsoft Knowledge
Base:
290140
OFFXP: How to Run Sample Code from Knowledge Base Articles
Modification Type: | Minor | Last Reviewed: | 1/6/2006 |
---|
Keywords: | kbbug kbpending KB302672 |
---|
|