FCLOSE

Macro Sheets Only

Closes the specified file.

Syntax

FCLOSE(file_num)

File_num is the number of the file you want to close. File_num is returned by the FOPEN function that originally opened the file. If file_num is not a valid file number, FCLOSE halts the macro and returns the #VALUE! error value.

Examples

The following function closes the file identified by FileNumber:


FCLOSE(FileNumber)

Related Functions

CLOSE Closes the active window

FILE.CLOSE Closes the active document

FOPEN Opens a file with the type of permission specified

List of DDE/External Functions