How to: Programmatically Refer to Worksheet Ranges in Code
You use a similar process to refer to the contents of a NamedRange control or a native Excel range object.
Applies to: The information in this topic applies to document-level projects and VSTO add-in projects for Excel. For more information, see Features Available by Office Application and Project Type.
The following example adds a NamedRange to a worksheet and then adds text to the cell in the range.
To refer to a NamedRange control
Working with Ranges
How to: Programmatically Check Spelling in Worksheets
How to: Programmatically Apply Styles to Ranges in Workbooks
How to: Programmatically Automatically Fill Ranges with Incrementally Changing Data
How to: Programmatically Search for Text in Worksheet Ranges
Host Items and Host Controls Overview
Programmatic Limitations of Host Items and Host Controls
Optional Parameters in Office Solutions