Copy(Int32,Int32,Int32,Int32,Int32,Int32,ManipulationOptions,Worksheet) Method
In This Topic
Copies the data from a range of cells to a specified range of cells.
Syntax
'Declaration
Public Overloads Function Copy( _
ByVal As Integer, _
ByVal column As Integer, _
ByVal As Integer, _
ByVal toColumn As Integer, _
ByVal As Integer, _
ByVal columnCount As Integer, _
ByVal As ManipulationOptions, _
Optional ByVal As Worksheet _
) As ActionResult(Of Object)
'Usage
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim toRow As Integer
Dim toColumn As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim options As ManipulationOptions
Dim targetWorksheet As Worksheet
Dim value As ActionResult(Of Object)
value = instance.Copy(row, column, toRow, toColumn, rowCount, columnCount, options, targetWorksheet)
Parameters
- row
- Row index of start of range from which to copy
- column
- Column index of start of range from which to copy
- toRow
- Row index of start of range to which to copy
- toColumn
- Column index of start of range to which to copy
- rowCount
- Number of rows to copy
- columnCount
- Number of columns to copy
- options
- The options indicates which data type will be performed.
- targetWorksheet
- The target worksheet where data will be copied to.
null
means the data is copied to the same worksheet.
Return Value
true
if the cell range is copied successful, false
otherwise.
See Also