Unable to hyperlink an Excel worksheet with spaces in the sheet's name from C# -
i need add hyperlink worksheet in excel in win7.
i have in c# vs 2013.
but, sheets' names have spaces hyperlink not work.
c# code:
sht.hyperlinks.add(rg, "#" + worksheetname + "!b1"); here, sht worksheet , rg range , worksheetname string spaces, e.g.
sht - data the hyperlink
mybookname - sht - data!a1 cannot find sheet name "my sht - data" due spaces.
the lib microsoft.office.interop.excel.
the solutions found cannot solve problem because need c#.
any apprewciated.
Comments
Post a Comment