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

Hyperlink Support #141

Open
Microtribute opened this issue Jul 27, 2021 · 7 comments
Open

Hyperlink Support #141

Microtribute opened this issue Jul 27, 2021 · 7 comments

Comments

@Microtribute
Copy link

Is it possible to make a cell a hyperlink either to an external link or to a worksheet in the same document?

@qrilka
Copy link
Owner

qrilka commented Aug 2, 2021

Hi @Microtribute
Sorry for a late reply - was away on my vacation.
Could you show me an example workbook so I could check out the details?

@GulinSS
Copy link

GulinSS commented Apr 12, 2024

@Microtribute
try workaround via formula. Something like:

let
  full_url = ...
  full_formula = Xlsx.NormalFormula . Xlsx.Formula
    $ "HYPERLINK(\"" <> full_url <> "\", \"" <> cell_text <> "\")"
in Xlsx.def { Xlsx._cellFormula = Just $ Xlsx.CellFormula full_formula False False }

It was adapted from here.

@qrilka
Copy link
Owner

qrilka commented Apr 12, 2024

If this workaround works then what would you imagine as "proper" relplacement as a part of the library API?

@GulinSS
Copy link

GulinSS commented Apr 12, 2024

Probably something like in Python

@qrilka
Copy link
Owner

qrilka commented Apr 12, 2024

Python is a bit different from Haskell but I'm OK with adding some helper if you will create a PR.
And yet I don't understand if you want something different to the workaround above.

@GulinSS
Copy link

GulinSS commented Apr 12, 2024

As for now the workaround via formula was more than enough for me. I've added it here just for somebody who will come to here via google search + github search.

@qrilka
Copy link
Owner

qrilka commented Apr 12, 2024

PR with this as a helper is welcome

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

3 participants