Object Model Reference : Classes : P : Page : Methods : Page.Delete |
Sub Delete()
Member of Page
The Delete method removes a page from a document and deletes all shapes on that page.
The following VBA example deletes all empty pages in the active document.
Sub Test() |
Dim p As Page |
For Each p In ActiveDocument.Pages |
If p.Shapes.Count = 0 Then p.Delete |
Next p |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.