Neither of these 2 statements works. Both creates an Excel error. Any ideas?
// objRange.FormatConditions.Add(Excel.XlFormatConditionType.xlCellValue,Excel.XlFormatConditionOperator.xlNotBetween,
// "=WEEKDAY($A$2+VALUE(A$2)-1,1)=1","=WEEKDAY($A$2+VALUE(A$2)-1,1)=7").Interior.ColorIndex = 10;
objRange.FormatConditions.Add(Excel.XlFormatConditionType.xlCellValue,Excel.XlFormatConditionOperator.xlNotBetween,
"=1","=7").Interior.ColorIndex = 10;
Also, does anyone have a list of what these colorindex values are?
Bookmarks