Copies data from one range to another.
Syntax
'Declaration
Public Shared Sub CopyTo( _
ByVal As Worksheet, _
ByVal As System.Integer, _
ByVal sourceColumn As System.Integer, _
ByVal As Worksheet, _
ByVal As System.Integer, _
ByVal destColumn As System.Integer, _
ByVal As System.Integer, _
ByVal columnCount As System.Integer, _
ByVal As CopyToOption _
)
'Usage
Dim source As Worksheet
Dim sourceRow As System.Integer
Dim sourceColumn As System.Integer
Dim dest As Worksheet
Dim destRow As System.Integer
Dim destColumn As System.Integer
Dim rowCount As System.Integer
Dim columnCount As System.Integer
Dim copyOption As CopyToOption
Workbook.CopyTo(source, sourceRow, sourceColumn, dest, destRow, destColumn, rowCount, columnCount, copyOption)
public static void CopyTo(
Worksheet ,
System.int ,
System.int sourceColumn,
Worksheet ,
System.int ,
System.int destColumn,
System.int ,
System.int columnCount,
CopyToOption
)
Parameters
- source
- The source sheet.
- sourceRow
- The source row.
- sourceColumn
- The source column.
- dest
- The target sheet.
- destRow
- The target row.
- destColumn
- The target column.
- rowCount
- The row count.
- columnCount
- The column count.
- copyOption
- The copy option.
See Also