1

I want to make test variable bold, but I can't find the sample code for this problem.

string test = "computer"; //this should be bold
worksheet_Main.Cells[25, "b"] = "bla bla bla" + test + "bla bla bla";
GregorMohorko
  • 2,739
  • 2
  • 22
  • 33
Mert
  • 11
  • 2
  • 1
    [add-html-text-in-excel-cell](https://social.msdn.microsoft.com/Forums/office/en-US/364ab1e9-861e-4296-92fc-0c85eeb2cb2a/add-html-text-in-excel-cell?forum=exceldev) – Héctor M. Apr 15 '18 at 23:57
  • 1
    In VBA this is [Count and Highlight keywords within phrases](https://stackoverflow.com/questions/32860792/count-and-highlight-keywords-within-phrases/32878493#32878493) and [Use array and find multiple strings using the below code in vba?](https://stackoverflow.com/questions/34106818/use-array-and-find-multiple-strings-using-the-below-code-in-vba/34107107#34107107). You should be able to translate to C# from there. –  Apr 16 '18 at 00:09
  • What excel package are you using? – Adeoluwa Simeon Apr 16 '18 at 05:32
  • @AdeoluwaSimeon Excel 2016 – Mert Apr 16 '18 at 06:37

0 Answers0