Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Working with Ranges

The NamedRange and Range classes contain the methods and properties you use to perform tasks with ranges.



Access a range and set the value.

How to: Refer to Worksheet Ranges in Code

Fill a range based on an initial value.

How to: Automatically Fill Ranges with Incrementally Changing Data

Get and set date values in cells.

How to: Store and Retrieve Date Values in Excel Ranges

Apply styles to cells in a region.

How to: Apply Styles to Ranges in Workbooks

Clear styles from cells in a region.

How to: Clear Styles from Ranges in Workbooks

Search for text in worksheet ranges.

How to: Search for Text in Worksheet Ranges

Apply color to text in a range of cells.

How to: Apply Color to Excel Ranges

Run Excel calculations programmatically.

How to: Run Excel Calculations Programmatically

For more information about Excel tasks and the Excel object model, see Excel Object Model Overview.

In some cases, the ways that you perform these tasks in application-level add-ins is different from the ways that you perform them in document-level customizations.

Community Additions

© 2015 Microsoft