Hello !!!
I am having a small problem in creating Hyperlinks using the Excel Interop in C#.
I am trying to give hyperlinks for different excel files in a parent excel file.
When I do the Worksheet.Hyperlinks.Add(<Cell> , <address> , Type.Missing , "Screen Tip" , <Text To Display>), the address parameter always takes the Relative Path with reference to the Parent Excel.
Eg: PlanogramInfoSheet.Hyperlinks.Add(PlanogramInfoSheet.Cells[i, 4], address, Type.Missing, "Link to Report", address)
even when the address is given as \\C:\Reports\Excel\Tool\Summary.xls , the parent excel has the address as "Summary.xls" since both reside at the same folder. The hyperlinks work when i open the parent excel from the specified folder but doesnt work when the same excel is copied and opened from another location (since the relative path will not hold true).
I need help to fix this. I want to enter the absolute path in a hyperlink so that the same excel can be used to open hyperlinks from anywhere.
Thanks
Vignesh Vaidyanathan