Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel vba set bold specific text of string into the cell?

I want to set bold some text in string.How can i do it ?

like image 225
Mennan Avatar asked Jul 25 '12 07:07

Mennan


2 Answers

I would say use this dynamic formula -

Range("A1").Characters(worksheetfunction.find("Excel",Range("A1").value,1),len("Excel")).font.bold = True
like image 67
anish Avatar answered Nov 12 '22 01:11

anish


By using Characters.

Range("A1").Characters(8, 5).Font.Bold = True
like image 22
GSerg Avatar answered Nov 12 '22 02:11

GSerg