Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Visual Basic for Applications Reference

Visual Studio 6.0

Input past end of file (Error 62)

See Also    Specifics

You can't read past the end-of-file position. This error has the following cause and solution:

  • An Input # or Line Input # statement is reading from a file in which all data has been read or from an empty file.

    Use the EOF function immediately before the Input # statement to detect the end of file.

  • You used the EOF function with a file opened for Binary access.

    EOF only works with files opened for sequential Input access. Use Seek and Loc with files opened for Binary access.

For additional information, select the item in question and press F1.

Show:
© 2015 Microsoft