为 Excel 工作表创建超链接:xlsxwriter [英] Creating a hyperlink for a excel sheet: xlsxwriter

查看:77
本文介绍了为 Excel 工作表创建超链接:xlsxwriter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以为 Excel 文件的特定工作表创建超链接?

Is it possible to create a hyperlink for a specific sheet of an excel file?

我想通过单击同一 Excel 文件的另一张工作表上的单元格来打开工作表.例如,如果有人单击 sheet2 中的A1"单元格,sheet1 将被打开,并且两个工作表都在 abc.xlsx 文件中.

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.

推荐答案

您可以使用 XlsxWriter Worksheet write_url() 方法使用 internal: URI 来完成此操作.请参阅 write_url() 上的 XlsxWriter 文档.

You can do this with the XlsxWriter Worksheet write_url() method using the internal: URI. See the XlsxWriter docs on write_url().

这篇关于为 Excel 工作表创建超链接:xlsxwriter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆