Workbook.Close

Use this function to close the workbook.

Syntax Parameters Return value
Sub Workbook.Close( _
    Optional SaveChanges As Variant, _
    Optional FileName As Variant)
  • SaveChanges [in, optional]

    Whether or not the document should be saved when closed. This parameter defaults to False if no argument is passed.

    Type: Variant

  • FileName [in, optional]

    The fully-qualified pathway to where the workbook shall be saved. This parameter defaults to the report's current filepath.

    Type: Variant

This function does not return a value.