Without knowing the details of your style: manually read the appropriate properties from the first row / cells of the first row and set them to the second. There is no explicit method provided for cloning styles from one line to another.
However, if all the cells in the first row are identical, you can apply this style to a range of cells, rather than doing it individually.
Personally, I create arrays of styles that I can then replicate where I need them.
Worksheet Methods:
duplicateStyle()
duplicateStyleArray()
and style method:
applyFromArray()
may be useful.
source
share