Previous Document Next Document

Object Model Reference : Classes : P : Page : Methods : Page.Delete


Page.Delete

Sub Delete()

Description

Member of Page

The Delete method removes a page from a document and deletes all shapes on that page.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.