Previous Document Next Document
Page.ActiveLayer

Property ActiveLayer As Layer

Member of Page

The ActiveLayer property returns the active layer of a specified page.

The ActiveLayer property returns a read-only value.

The following code example places page numbers on each page of the document:

Sub Test() 
 Dim p As Page 
 For Each p In ActiveDocument.Pages 
  p.ActiveLayer.CreateArtisticText 0, 0, "Page " & p.Index 
 Next p 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.