-
Is it possible to set the last active cell in the book? Basically, an option to select particular cell within a particular worksheet, and after saving the file it is expected that when it is opened that cell will be displayed. |
Beta Was this translation helpful? Give feedback.
Answered by
JanMarvin
Aug 23, 2023
Replies: 2 comments 3 replies
-
Hi @lz1nwm , that's not possible via argument, but you can do it like this: wb <- wb_workbook()$add_worksheet()
wb$worksheets[[1]]$freezePane <- "<selection activeCell=\"G9\" sqref=\"G9\"/>"
wb$worksheets[[1]]$sheetViews <- "<sheetViews><sheetView tabSelected=\"1\" topLeftCell=\"B2\" workbookViewId=\"0\"/></sheetViews>"
if (interactive()) wb$open() To set the top left cell, you'd have to modify sheetViews, but I'm typing on the smartphone. Let me know if this works. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
JanMarvin
-
It works. Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @lz1nwm ,
that's not possible via argument, but you can do it like this:
To set the top left cell, you'd have to modify sheetViews, but I'm typing on the smartphone.
Let me know if this works.