CountFiles()

Syntax

CountFiles()

Remarks

Returns the number of filenames in the list of most recently used files at the bottom of the File menu.

Example

This example opens the most recently used file. You could use this instruction in an AutoExec macro. It uses CountFiles() to determine that at least one file is listed on the File menu.


If CountFiles() Then File1 Else MsgBox "Sorry, no file listed."

See Also

FileList, FileName$(), FileNumber