如何以跨平台方式创建与本地文件的相对超链接?
我希望能够创建一个XLSX文件,该文件包含在同一目录中或子目录中的文件和中的链接,并且能够在不同的平台(MacOS,Linux,Windows)和不同的电子表格上打开它们程序(Excel,Libreoffice,Apple号码)。
I want to be able to create a XLSX file which contains links to files in the same directory or in sub-directories and be able to open them on different platforms (macOS, Linux, Windows) and different spreadsheet programs (Excel, LibreOffice, Apple Numbers).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Apple号码完全不支持Local
超链接
S。以下公式在MacOS,Linux和Windows上工作,以及Libreoffice和Excel:
替换
{{filename}}}
,并使用要打开的文件。说明:
\
替换为/
,以便在Windowscell上正确计算
'文件://
。Apple Numbers does not support local
HYPERLINK
s at all.Following formula works on macOS, Linux, and Windows and with LibreOffice and Excel:
Replace
{{ filename }}
with the file you want to open.Explanation:
\
with/
for correct calculations on WindowsCELL("filename")
gets the path of the current spreadsheet file, but slightly differently in Excel and LibreOffice. Therefore the LibreOffice specific'file://
must be removed.