- Code: Select all
string testlink = "=HYPERLINK(\"http://www.whatever.com/\";\"LINK\")";
workbook.Worksheets[0].Range["A1"].Formula = testlink;
With this, the formula in Excel is shown this way:
=HYPERLINK("http://www.whatever.com/"";""LINK")
Because of the doubled " before and after the ';', Excel cannot use the link correctly (wrong reference). What to do to have this correctly?
EDIT:
If i display the link in a MessageBox it shows the string in the correct way:
=HYPERLINK("http://www.whatever.com/";"LINK")