How to: Clear Styles from Ranges in Workbooks
Visual Studio 2008
Applies to |
|---|
The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office. Project type
Microsoft Office version
For more information, see Features Available by Application and Project Type. |
You can clear styles that have been added to a NamedRange control or a native Excel range object by applying the Normal style to the range.
This example assumes that you have a NamedRange control named rangeStyles on the worksheet. The following code must be placed in a sheet class, not in the ThisWorkbook class.