Create Workbook (Global) and Worksheet Scoped Named Ranges

The following code samples show how to create workbook and worksheet scoped name ranges by using the Range class.

Adding a Named Range with Workbook Scope

Adding a Named Range with Worksheet Scope