java - 一个单元格中的多个超链接

标签 java excel apache-poi

我遇到了与 Excel 中的超链接有关的问题。我想在一个单元格中有几个超链接。是否可以?我读了一些关于矩形的内容,我应该在其中放置每个链接,但我不知道如何做到这一点。

最佳答案

抛开 POI,我看看是否真的有可能在 Excel 本身的一个单元格中有多个超链接:

http://excel.tips.net/T002805_Putting_More_than_One_Hyperlink_in_a_Cell.html

The short answer is that this cannot be done. Excel only allows you to enter hyperlinks on a cell-by-cell basis. Even if you add the hyperlinks to adjacent cells, and then merge the cells into one, only the first hyperlink is maintained by Excel.

因此,POI 也不能这样做。

关于java - 一个单元格中的多个超链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32843895/

相关文章:

java - Java中的页面置换算法模拟

excel - 在区间 Excel 中使用公式

vba - 从单元格中取回公式 - VBA

apache-poi - 如何抑制初始 StatusLogger 错误消息

java - 使用一个类中的变量到另一个java中

java - Jackson json反序列化以整数(原始数据)作为POJO的关键

将项目添加到 With...End With 时出现 excel 错误 91

java - Apache POI xls 文件错误

java - 使用 Apache POI 更新 .docx 文件的页眉

java - 动态生成的 Javascript 输入字段无法被 Httpservletrequest 识别???仅在 Chrome 中?