Sometimes a file must be closed before another Open or other operation can occur. This error has the following causes and solutions:

  • A sequential-output mode Open statement was executed for a file that is already open. You must close a file opened for one type of sequential access before opening it for another. For example, you must close a file opened for Input before opening it for Output.
  • A statement, for example, KillSetAttr, or Name, refers to an open file. Close the file before executing the statement.
[efb_likebox fanpage_url="https://www.facebook.com/vbamarket/" box_width="840" box_height=340"" responsive="1" show_faces="1" show_stream="1" hide_cover="1" small_header="0" hide_cta="0" locale="en_US"]