主题
Hyperlinks (属性)
返回 Hyperlinks 集合,它代表区域的超链接。
示例
python
#此示例检查第一张工作表上的超链接是否含有“Kingsoft”字样
def test():
hyperlinks = Worksheets.Item(1).Hyperlinks
for i in range(1, hyperlinks.Count):
h = hyperlinks.Item(i)
if h.Name.indexOf("Kingsoft") >= 0:
h.Follow()
python
#本示例为活动工作表 A3 单元格添加超链接
def test():
ActiveSheet.Hyperlinks.Add(Range("A3"), "https://www.wps.cn/")