tags:

views:

33

answers:

1

Hi,
I need to set/insert hyperlinks for a range of values in an Excel sheet from my program written in Visual C#.
I am using "Microsoft.Office.Interop.Excel" and no third party Excel tools.

I have URLs in string format with me in the program which need to show up as Hyperlinks in the Excel workbook.

Any ideas on how this can be implemented? I did not see any familiar feature in Excel.Range which I could use. Any suggestions would be appreciated!

Thanks,
Ivar

+1  A: 

Have you tried Hyperlinks.Add?

You can add a hyperlink to a range of cells (after setting the text content).

Mau
@Mau, Used excelApplication.Hyperlinks.Add method and it worked great. Thanks for the suggestion!!
topgun_ivard