I'm developing a vsto addin for Excel, and I'm trying to change the color to the comments in Excel.
This is the code that I have:
Excel.Range activeCell = _application.ActiveCell;
activeCell.AddComment("some text"));
activeCell.Comment.Shape.Fill.BackColor = Color.Red;
The exception I'm getting is:
Cannot implicitly convert type 'System.Drawing.Color' to 'Microsoft.Office.Interop.Excel.ColorFormat'
I cannot find how to make a conversion between the two formats.
One option is to use
ColorTranslator.ToOle
Try this:
Or this(EDIT: False):