You can close the current file by setting FileName to an empty string. In Visual Basic set FileName to "".