FileLen Function

Returns a Long specifying the length of a file in bytes.

Syntax

FileLen(pathname)

The required pathname argument is a string expression that specifies a file. The pathname may include the directory or folder, and the drive.

Dim MySize
MySize = FileLen("TESTFILE") ' Returns file length (bytes).