Editing Hyperlinks of Worksheet

Contents
[ ]

The following sample code accesses all the hyperlinks of the worksheet and changes their Hyperlink.address property to the Aspose website.

from aspose.cells import Workbook
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# The path to the documents directory.
dataDir = RunExamples.GetDataDir(".")
workbook = Workbook(dataDir + "Sample.xlsx")
worksheet = workbook.worksheets[0]
for i in range(len(worksheet.hyperlinks)):
hl = worksheet.hyperlinks[i]
hl.address = "http://www.aspose.com"
workbook.save(dataDir + "output_out.xlsx")