Change font colour

Need to change font colour of cell to grey using vb.net script

Hi @sruthesanju,

You can check this topic.

Dim style As Excel.Style = xlWorkSheet.Application.ActiveWorkbook.Styles.Add("NewStyle")
style.Font.Bold = True
style.Interior.Color = System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.Yellow)

xlWorkSheet.Cells(rownumber, 1).Style = "NewStyle"

Excel.style is not defined error

Hello @sruthesanju

Is it mandatory to use Vb.net?

Else please use the activity Format Cell to meet the requirement.

It’s manadatory use vb.net

I need to change the font colour not background colour plese to find code for this script

Any one can reply please

Hi @sruthesanju ,

Have you Checked the post below :