Can anybody tell me how we can add a hyperlink in Excel (2007 or later) from a cell in one sheet to a cell in another sheet using Office Interop in .NET (c#)
For example
To add a link to a picture (already inserted into the sheet):
Hyperlinks hyperlinks = ws.Hyperlinks;
Hyperlink hyperlink = hyperlinks.Add(picture.ShapeRange.Item(1), "http://stackoverflow.com");
You are not adding it directly to the picture, but the 1st item in it's ShapeRange. (Whatever that is...)