addStyle(wb, sheet=2, integerstyle, rows=5:16, cols=2, stack=TRUE) should affect only sheet 2 of a workbook and only the selected cells.
Actual Behavior
All sheets are affected by the second addStyle-command using a custom numFmt.
The first addStyle affects only the declared cells, as expected, but the second addStyle affects all sheets and I think also all cells, that don't have a declared numFmt yet.
Steps to Reproduce the Problem
(please attach an example xlsx file if possible)
create a workbook with multiple sheets using openxlsx, in my case 4 sheets. The one I use is attached here testfile.xlsx
Expected Behavior
addStyle(wb, sheet=2, integerstyle, rows=5:16, cols=2, stack=TRUE) should affect only sheet 2 of a workbook and only the selected cells.
Actual Behavior
All sheets are affected by the second addStyle-command using a custom numFmt. The first addStyle affects only the declared cells, as expected, but the second addStyle affects all sheets and I think also all cells, that don't have a declared numFmt yet.
Steps to Reproduce the Problem
(please attach an example xlsx file if possible)
create a workbook with multiple sheets using openxlsx, in my case 4 sheets. The one I use is attached here testfile.xlsx
load worbbooks and add styles to certain cells
sessionInfo()
Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1