Previous Document Next Document

Object Model Reference : Classes : R : RecentFile : Methods : RecentFile.Open


RecentFile.Open

Function Open() As Object

Description

Member of RecentFile

The Open method opens a document from the Most Recently Used (MRU) list.

The following code opens the second document in the MRU list of CorelDRAW and displays the number of pages it contains.

Sub Test()
 Dim doc As Document
 Set doc = RecentFiles(2).Open
 MsgBox "Number of pages = " & doc.Pages.Count
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.