Is it possible to create a hyperlink for a specific sheet of an excel file?
I want to open a sheet on the click of a cell which is on another sheet of the same excel file. For example, if someone clicks on 'A1' cell which is in the sheet2 the sheet1 will be opened and both the sheets are in the abc.xlsx file.
You can do this with the XlsxWriter Worksheet write_url()
method using the internal:
URI. See the XlsxWriter docs on write_url().
I was unable to get this to work using the "write_url(A1, "internal:'sheet name'!A2")" form. Can someone provide some guidance on this?
I was able to successfully add hyperlinks to internal cells using the form:
write('A1', '=HYPERLINK(CELL("address", 'sheet name'!A2), "Friendly Name")
NOTE: the word 'address' is literal/not a generic reference, and, the quotes need to be specified as shown (i.e., single quotes for a multi-word sheet name, and double quotes for the word 'address' and the 'Friendly Name'...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With