The Locked property returns or sets the locked state of the layer. Returns a Boolean.
Syntax
object.Locked
object.Locked = Locked
Parameter |
Type |
Description |
Locked |
Boolean |
required; true to lock a layer |
Example 1
This example returns the locked state of the layer.
Debug.Print CurrentLayer.Locked
Example 2
This example locks a layer.
CurrentLayer.Locked = True
Used by: Layer object