# GrapeCity.Documents.Excel.IRange.Copy

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_IRange_Copy_" data-uid="GrapeCity.Documents.Excel.IRange.Copy*">Copy Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_IRange_Copy_" data-uid="GrapeCity.Documents.Excel.IRange.Copy*"></a>
<h4 id="GrapeCity_Documents_Excel_IRange_Copy_GrapeCity_Documents_Excel_IRange_GrapeCity_Documents_Excel_PasteType_" data-uid="GrapeCity.Documents.Excel.IRange.Copy(GrapeCity.Documents.Excel.IRange,GrapeCity.Documents.Excel.PasteType)">Copy(IRange, PasteType)</h4>
<div class="markdown level1 summary"><p>Copies the range to the specified range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Obsolete(&quot;Please use the PasteOption overload instead.&quot;)]
void Copy(IRange destination, PasteType pasteType = PasteType.Default)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Obsolete(&quot;Please use the PasteOption overload instead.&quot;)&gt;
Sub Copy(destination As IRange, Optional pasteType As PasteType = PasteType.Default)</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="GrapeCity.Documents.Excel.IRange.html">IRange</a></td>
      <td><span class="parametername">destination</span></td>
      <td><p>Specifies the new range to which the specified range will be pasted. It can be the range of the same or another workbook.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.PasteType.html">PasteType</a></td>
      <td><span class="parametername">pasteType</span></td>
      <td><p>Specifies the part of the range to be pasted.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_IRange_Copy_" data-uid="GrapeCity.Documents.Excel.IRange.Copy*"></a>
<h4 id="GrapeCity_Documents_Excel_IRange_Copy_GrapeCity_Documents_Excel_IRange_GrapeCity_Documents_Excel_PasteOption_" data-uid="GrapeCity.Documents.Excel.IRange.Copy(GrapeCity.Documents.Excel.IRange,GrapeCity.Documents.Excel.PasteOption)">Copy(IRange, PasteOption)</h4>
<div class="markdown level1 summary"><p>Copies the range to the specified range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Copy(IRange destination, PasteOption pasteOption)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Copy(destination As IRange, pasteOption As PasteOption)</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="GrapeCity.Documents.Excel.IRange.html">IRange</a></td>
      <td><span class="parametername">destination</span></td>
      <td><p>Specifies the new range to which the specified range will be pasted. It can be the range of the same or another workbook.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.PasteOption.html">PasteOption</a></td>
      <td><span class="parametername">pasteOption</span></td>
      <td><p>Specifies the part of the range to be pasted and whether to include hidden range.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_IRange_Copy_" data-uid="GrapeCity.Documents.Excel.IRange.Copy*"></a>
<h4 id="GrapeCity_Documents_Excel_IRange_Copy_GrapeCity_Documents_Excel_IRange_" data-uid="GrapeCity.Documents.Excel.IRange.Copy(GrapeCity.Documents.Excel.IRange)">Copy(IRange)</h4>
<div class="markdown level1 summary"><p>Copies the range to the specified range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Copy(IRange destination)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Copy(destination As IRange)</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="GrapeCity.Documents.Excel.IRange.html">IRange</a></td>
      <td><span class="parametername">destination</span></td>
      <td><p>Specifies the new range to which the specified range will be pasted. It can be the range of the same or another workbook.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
