Home > Technology > Setting an Excel cell background color

Setting an Excel cell background color

December 9th, 2009 Leave a comment Go to comments

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);

Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.