Previous Document Next Document

Object Model Reference : Classes : W : Window : Properties : Window.Document


Window.Document

Property Document As Document

Description

Member of Window

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

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.