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

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -