Object Model Reference : Classes : W : Window : Properties : Window.Document |
Property Document As Document
Member of Window
The Document property returns a read-only reference to the document to which a window belongs.
The following VBA 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 2013 Corel Corporation. All rights reserved.