Excel and C#

N

newscorrespondent

I am not familiar with that example but this is how I do it.

Record a macro to get the color index you want.

ExcelRange = YouthCenterSurveySheet.get_Range
(MyExcel.GetCellReference(CurrentLine, TotalColumn),
MyExcel.GetCellReference(CurrentLine, Member_Column));
ExcelRange.Select();
ExcelRange.Interior.ColorIndex = 8;
ExcelRange.Interior.Pattern = (int) Excel.Constants.xlSolid;
ExcelRange.Interior.PatternColorIndex = (int) Excel.Constants.xlAutomatic;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top