Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freezing does not work in Excel file with around 15 sheets #550

Open
Rengervn opened this issue Aug 15, 2023 · 1 comment
Open

Freezing does not work in Excel file with around 15 sheets #550

Rengervn opened this issue Aug 15, 2023 · 1 comment

Comments

@Rengervn
Copy link

Expected Behavior

I fill an excel file in a loop over around 15 sheets with data. At the end of each sheet, I add a freezePane command.
freezePane(wb, sn, firstActiveRow = 4, firstActiveCol = 7)
and after the loop save it.
I expect the sheets are frozen at 4,7

Actual Behavior

No freezing takes place

Steps to Reproduce the Problem

(please attach an example xlsx file if possible)

Just run the following code
wb <- loadWorkbook(file = "temp.xlsx")
sectors <- getSheetNames(file = "temp.xlsx")
for (sn in sectors) {
freezePane(wb, sn, firstActiveRow = 4, firstActiveCol = 7)
}
saveWorkbook(wb, file = "temp.xlsx", overwrite = T)

Cheers
Renger

sessionInfo()

  • Version of openxlsx: 4.2.5.2
  • Version of R: 4.0.4
    temp.xlsx
@Rengervn
Copy link
Author

With smaller excel files, freeze works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant