# GrapeCity.Spreadsheet.IWorkbook.Close

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IWorkbook_Close_" data-uid="GrapeCity.Spreadsheet.IWorkbook.Close*">Close Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IWorkbook_Close_" data-uid="GrapeCity.Spreadsheet.IWorkbook.Close*"></a>
<h4 id="GrapeCity_Spreadsheet_IWorkbook_Close_System_Boolean_System_String_" data-uid="GrapeCity.Spreadsheet.IWorkbook.Close(System.Boolean,System.String)">Close(bool, string)</h4>
<div class="markdown level1 summary"><p>Closes this workbook.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Close(bool saveChanges = false, string filename = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Close(Optional saveChanges As Boolean = False, Optional filename As String = Nothing)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">saveChanges</span></td>
      <td><p>If there are no changes to the workbook, this argument is ignored.
If set to True , changes are saved to the workbook. If there is not yet a file name associated with the workbook, then <code class="paramref">filename</code> is used.
If <code class="paramref">filename</code> is omitted and there is no file name associated with the workbook, <code class="paramref">saveChanges</code> is ignored.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">filename</span></td>
      <td><p>Save changes under this file name.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
