![]() |
![]() |
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
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.