HTML JPG PDF XML CSV
  Product Family
PDF

Insert Hyperlink into Excel in Java

High-speed Java library for inserting hyperlink into excel file. This is a professional software solution to deal with excel file using Java.

Insert Hyperlink into Excel Using Java

How do I insert hyperlink to excel? With Aspose.Cells for Java library, you can easily insert hyperlink to excel programmatically with a few lines of code. Aspose.Cells for Java is capable of building cross-platform applications with the ability to generate, modify, convert, render and print all Excel files. Java Excel API not only convert between spreadsheet formats, it can also render Excel files as images, PDF, HTML, ODS, CSV, SVG, JSON, WORD, PPT and more, thus making it a perfect choice to exchange documents in industry-standard formats. You can download its latest version directly from Maven and install it within your Maven-based project by adding the following configurations to the pom.xml.

Repository


<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://repository.aspose.com/repo/</url>
</repository>

Dependency


<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-cells</artifactId>
<version>version of aspose-cells API</version>
<classifier>jdk17</classifier>
</dependency>

Insert Hyperlink into Excel in Java

It is easy for the developers to insert hyperlink to excel file in just a few lines of code.

  1. Create Workbook class instance.
  2. Add a new worksheet to the Excel object and set name of newly added worksheet.
  3. Access the first worksheet of the workbook.
  4. Add a hyperlink to a URL at “A1” cell.
  5. Adding an internal hyperlink to the “B9” cell of the other worksheet “Sheet2” in the same Excel file.
  6. Use Save method to save the workbook as XLSX file.
 

Insert Hyperlink to Excel - Java

 

Java library to insert hyperlink to excel

We host our Java packages in Maven repositories. ‘Aspose.Cells for Java’ is a common JAR file containing byte-code. Please follow the step-by-step instructions on how to install it to your Java developer environment.

System Requirements

Before running the Java conversion source code, make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with Java Runtime Environment for JSP/JSF Application and Desktop Applications.
  • Get latest version of Aspose.Cells for Java directly from Maven.