Copy Range Style Only
Contents
[
Hide
]
Copy Range Data Only and Copy Range Data with Style explained how to copy data from a range to another with or without formatting. It is also possible to copy only the formatting of the range. This article shows how.
Copy Range Style Only
This example creates a workbook, populates it with data and copies a range’s style only.
- Create a range.
- Create a style object with specified formatting attributes.
- Apply the style formatting to the range.
- Create a second range of cells.
- Copy the first range’s formatting to the second range.