Name
plotarea
.ClearFormats( )
Synopsis
Removes formatting from the plot area object. For example, the following code removes the built-in fill applied in ApplyPlotAreaFill
:
Sub ResetPlotArea( ) Dim chrt As Chart ' Get the chart. Set chrt = ActiveChart ' Restore default formatting. chrt.PlotArea.ClearFormats End Sub
Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.