In This Topic
Copies the data, formatting, formulas, and notes from a block of cells on the sheet to a new location.
Syntax
'Declaration
Public Sub CopyRange( _
ByVal As Integer, _
ByVal fromColumn As Integer, _
ByVal As Integer, _
ByVal toColumn As Integer, _
ByVal As Integer, _
ByVal columnCount As Integer, _
ByVal As Boolean _
)
'Usage
Dim instance As SheetView
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 dataOnly As Boolean
instance.CopyRange(fromRow, fromColumn, toRow, toColumn, rowCount, columnCount, dataOnly)
Parameters
- fromRow
- Row index of top-left cell in block to copy
- fromColumn
- Column index of top-left cell in block to copy
- toRow
- Row index of top-left cell in destination
- toColumn
- Column index of top-left cell in destination
- rowCount
- Number of rows in the block
- columnCount
- Number of columns in the block
- dataOnly
- Whether only the data is copied, or the data and formatting
Exceptions
See Also