CopyTo(Int32,Int32,Int32,Int32,Int32,Int32,CopyToOption) Method
In This Topic
Copies data from one range to another.
Syntax
'Declaration
Public Sub CopyTo( _
ByVal As Integer, _
ByVal fromColumn As Integer, _
ByVal As Integer, _
ByVal toColumn As Integer, _
ByVal As Integer, _
ByVal columnCount As Integer, _
ByVal As CopyToOption _
)
'Usage
Dim instance As Worksheet
Dim fromRow As Integer
Dim fromColumn As Integer
Dim toRow As Integer
Dim toColumn As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim option As CopyToOption
instance.CopyTo(fromRow, fromColumn, toRow, toColumn, rowCount, columnCount, option)
Parameters
- fromRow
- The source row.
- fromColumn
- The source column.
- toRow
- The target row.
- toColumn
- The target column.
- rowCount
- The row count.
- columnCount
- The column count.
- option
- The copy option.
See Also