Posted 26 February 2018, 10:06 am EST
Hi,
On my sheet I want to copy all the style, formulas, conditional format etc. to another newly added row. I am using the copyTo function on the active sheet object to achieve that but the locked property doesn’t seem to copy, therefore I have to iterate through all the columns and set the locked property accordingly, causing performance issues.
This is a snippet of code:
sheet.copyTo(dataRange.row,
0,
dataRange.endRow,
0,
1,
sheet.getColumnCount(),
(GC.Spread.Sheets.CopyToOptions.formula |
GC.Spread.Sheets.CopyToOptions.outline |
GC.Spread.Sheets.CopyToOptions.span |
GC.Spread.Sheets.CopyToOptions.tag |
GC.Spread.Sheets.CopyToOptions.conditionalFormat |
GC.Spread.Sheets.CopyToOptions.style));
How can I copy the locked property?
Thanks,
Mircea
