Copy Range Data Only

Copy Range Data Only

This example shows how to:

  1. Create a workbook.
  2. Add data to cells in the first worksheet.
  3. Create a range.
  4. Create a style object with specified formatting attributes.
  5. Apply the style formatting to the range.
  6. Create another range of cells.
  7. Copy data of the first range to this second range by using the Range.copyData method.