Try the following out:
xlRG = xlWS.Cells(row, 7)
xlRG.Font.Bold = True
xlRG.Font.Color = 255 ' sets font color to RED
xlRG.Interior.ColorIndex = 34 ' light blue
xlRG.Interior.Pattern = Excel.XlPattern.xlPatternSolid
where xlRG is a range object and xlws is the worksheet object
"Herfried K. Wagner [MVP]" wrote:
"saeed rezaei" <sr*********@yahoo.com> schrieb: who is knowh how i can changing the excel cells backcolor.
now i can working whit excel but still i cant change the
backcolor of cells.
Give the Excel programmers a try:
<URL:news://news.microsoft.com/microsoft.public.excel.programming>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>