Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 921 Bytes

Excel.Workbook.Names.md

File metadata and controls

43 lines (25 loc) · 921 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Workbook.Names property (Excel)
vbaxl10.chm199115
vbaxl10.chm199115
Excel.Workbook.Names
26be56ec-ea12-1600-602a-eb338d4a5a8b
05/29/2019
medium

Workbook.Names property (Excel)

Returns a Names collection that represents all the names in the specified workbook (including all worksheet-specific names). Read-only Names object.

Syntax

expression.Names

expression A variable that represents a Workbook object.

Remarks

Using this property without an object qualifier is equivalent to using ActiveWorkbook.Names.

Example

This example defines the name myName for cell A1 on Sheet1.

ActiveWorkbook.Names.Add Name:="myName", RefersToR1C1:= _ 
 "=Sheet1!R1C1"

[!includeSupport and feedback]