-
Hi, and thanks for a great package! Is there a way to insert rows and columns at a specific position on a worksheet? Possibly by copying the style and filling formulae. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @missuse, there are plenty of options documented for instance here: Or here: https://janmarvin.github.io/ox2-book/chapters/openxlsx2_style_manual.html#copy-cell-styles As with many things in spreadsheets it depends on your specific question. But please be aware that we do not feature inserting columns or rows into spreadsheets. But you can insert data frames into specific columns and rows just fine. |
Beta Was this translation helpful? Give feedback.
Hi @missuse , yes indeed. I replied here some time ago as to why I don't implement a function to insert/delete columns or rows into a spreadsheet: https://stackoverflow.com/a/75666670/12340029
Unfortunately, my reasoning has not changed since then. There are several things we would need to check and update, among the long list are:
Since we do not currently check these things, the output would always differ from the expectation. So my suggestion would always be: find another solution that doesn't require inserting rows or columns in a new format. I'm not saying it's impossible, in the example above yo…