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(".") # Instantiating a Workbook object workbook = Workbook() # Adding a new worksheet to the Excel object i = workbook.worksheets.add() # Obtaining the reference of the newly added worksheet by passing its sheet index worksheet = workbook.worksheets[i] # Adding an internal hyperlink to the "B9" cell of the other worksheet "Sheet2" in # The same Excel file worksheet.hyperlinks.add("A5", 1, 1, dataDir + "book1.xls") # Saving the Excel file workbook.save(dataDir + "output.out.xls")