Object Model Reference : Classes : R : RecentFile : Methods : RecentFile.Open |
Function Open() As Object
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 |
Copyright 2013 Corel Corporation. All rights reserved.