API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.Activate method
Sets an instance of a layer to be active
Syntax:
Sub Activate()
Remarks:
The Activate method activates a layer, making it the active layer.
Examples:
The following VBA example activates the layer named Layer 1 in the active page.
Sub Test()
ActivePage.Layers("Layer 1").Activate 
End Sub