Name Property [Layer]

 

The Name property returns or sets the name of the layer. Returns a string.

 

Syntax

object.Name

object.Name = Name

 

Parameter

Type

Description

Name

String

required; layer name

 

Example 1

This example returns the layer name.

 

Debug.Print CurrentLayer.Name

 

Example 2

This example sets the name of a layer to "Base Layer."

 

CurrentLayer.Name = "Base Layer"

 

Used by: Layer object