Edit & changing colors in specific cell in excel
Hi
I'm writing a project in VB.NET using Excel.
I want to know how can I insert string to specific cell, how can I change the color of specific cell, and how can i fill sheet (making loops that run through all the columns and rows that I'm telling it too).
Thanks
changing colors in excl from vb.net
Hi
I'm trying to change the color of Excel's cell by
exWS.Range("B2", "F2").Font.Color.System.Drawing.Color.Red()
but it gives me an error
what's the correct way to do this?
Excel 2003 Row Specific Cell Font Color Setting
Quote:
Originally Posted by
biot
Hi
I'm trying to change the color of Excel's cell by
exWS.Range("B2", "F2").Font.Color.System.Drawing.Color.Red()
but it gives me an error
what's the correct way to do this?
--------------------------------------------------------------------
Hi Friend, :WAVE:
I did encounter the same problem 3 hours ago and I tried out this coding and surprsing it works. I am using VBNEt2008 and EXCEL 2003
this is the coding that I tried and it works:
xlWrkSheet.Cells(intRow, icol).Font.Color = System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.Blue)
Hope you try it