Object Model Reference : Classes : L : Layer : Methods : Layer.Delete |
Sub Delete()
Member of Layer
The Delete method removes a layer and its contents.
The following VBA example deletes the layer named Layer 1 on the active page, as well as its contents.
Sub Test() |
ActivePage.Layers("Layer 1").Delete |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.