Home > Software > Setting an Excel cell background color

Setting an Excel cell background color

December 9th, 2009 digital

Description:
Set a cell’s solid background color using a single user-defined color.

Code:
using System.Drawing;
using Microsoft.Office.Interop.Excel;

Range range = <get your range>;
range.Interior.Color = ColorTranslator.ToOle(Color.PaleGreen);

Categories: Software Tags: , ,
Comments are closed.