How to create a link inside a cell using EPPlus

calendar_today Asked Oct 3, 2011
thumb_up 50 upvotes
history Updated April 16, 2026

Question posted 2011 · +18 upvotes

I am trying to figure out how to write a Hyperlink inside a cell using EPPlus instead of the cell containing the link text. I need it to be recognized as a link and be clickable.

Any help is appreciated.

Accepted answer +50 upvotes

This is the other way to do:

var cell = sheet.Cells["A1"];
cell.Hyperlink = new Uri("http://www.google.com");
cell.Value = "Click me!";

I have tested. It works fine.

Top excel Q&A (6)

+50 upvotes ranks this answer #4 out of 167 excel solutions on this site — top 2%.