For text:
[RangeObject].Font.Color = System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.Red);
For cell background
[RangeObject].Interior.Color = System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.Red);
More Related Contents:
- Reading Excel files from C#
- How to detect installed version of MS-Office?
- How to read data from excel file using c# [duplicate]
- Set data type like number, text and date in excel column using Microsoft.Office.Interop.Excel in c#
- Query excel sheet in c#
- Accessing an open Excel Workbook in C#
- How to convert a column number (e.g. 127) into an Excel column (e.g. AA)
- How to read data of an Excel file using C#?
- Reading Datetime value From Excel sheet
- Reading excel file using OLEDB Data Provider
- A Simple C# DLL – how do I call it from Excel, Access, VBA, VB6?
- Fastest method to remove Empty rows and Columns From Excel Files using Interop
- Closing Excel Application Process in C# after Data Access
- unable to cast COM object of type ‘microsoft.Office.Interop.Excel.ApplicationClass’ to ‘microsoft.Office.Interop.Excel.Application'”
- How to read an excel file in C# without using Microsoft.Office.Interop.Excel libraries
- What is the algorithm to convert an Excel Column Letter into its Number?
- How to use use late binding to get excel instance?
- How to extract text from MS office documents in C#
- Excel error HRESULT: 0x800A03EC while trying to get range with cell’s name
- Why does Microsoft.Office.Interop.Excel.Application.Quit() leave the background process running?
- How do I import from Excel to a DataSet using Microsoft.Office.Interop.Excel?
- How to make correct date format when writing data to Excel
- C# – How to copy a single Excel worksheet from one workbook to another?
- Importing Excel into a DataTable Quickly
- Please explain why I am able to instantiate the “Application” interface in Excel VSTO
- Accessing Excel Custom Document Properties programmatically
- Open XML SDK 2.0 – how to update a cell in a spreadsheet?
- Get the Column Index of a Cell in Excel using OpenXML C#
- Running an Excel Macro via C#: Run a macro from one workbook on another?
- PPT slides to images