Free Support Forum - aspose.com

Making Font Bold

Hi !

I will appreciate if you give me the solution for the following. -

I want to make some text bold in cell not complete cell.

How can I make text bold?

Thank You

Parag Kale.

Hi,

Thanks for considering Aspose.

May the following code help you for your requirement:

Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
Cells cells = worksheet.Cells;
cells[0,0].PutValue("This is a test");
cells[0,0].Characters(0,10).Font.IsItalic = true;
cells[0,0].Characters(10, 4).Font.IsBold = true;
workbook.Save("d:\\test\\out_book.xls");

Thank you.

It's working now.

Thank you so much.

One more issue:

After creating runtime Checkbox in excel sheet, I am not getting any reference in VB editor (Macro).

What I have to do to get reference in VB Editor.

Thank You.