Previous Document Next Document
Window.Document

Property Document As Document

Member of Window

The Document property returns a reference to the document to which the window belongs.

The Document property returns a read-only value.

The following code example displays the title of the document:

Sub Test() 
 Dim CDoc As Document 
 Set CDoc = ActiveWindow.Document 
 MsgBox "The title of this document is: " & CDoc.Title 
 Set CDoc = Nothing 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.