CountFoundFiles()

Syntax

CountFoundFiles()

Remarks

Returns the number of files found in the last search using FileFind. CountFoundFiles() returns 0 (zero) if no files were found in the last search or
if a search has not been performed during the current Word session.

Example

This example determines whether the last FileFind search was successful:


If CountFoundFiles() = 0 Then MsgBox "No files found."

For another example, see FileFind.

See Also

FileFind, FoundFileName$()