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

only one hyperlink is colored #344

Closed
JanMarvin opened this issue Sep 26, 2022 · 0 comments · Fixed by #365
Closed

only one hyperlink is colored #344

JanMarvin opened this issue Sep 26, 2022 · 0 comments · Fixed by #365

Comments

@JanMarvin
Copy link
Owner

In the following example only the first hyperlink in cell A1 is blue:

library(openxlsx2)

wb <- wb_workbook()$
  add_worksheet("Tab_1", zoom = 80, gridLines = FALSE)$
  add_worksheet("Tab_2", zoom = 80, gridLines = FALSE)

hl <- function(row = i) create_hyperlink(sheet = "Tab_2", row = i, col = 1, text = paste0("Link to 'Tab_2'"))

for(i in 1:10) {
  wb <- wb_add_formula(wb = wb, sheet = "Tab_1", startRow = i, startCol = 1, x = hl(i))
}

wb$open()
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

Successfully merging a pull request may close this issue.

1 participant