Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default C# with Excel and conditional format


Neither of these 2 statements works. Both creates an Excel error. Any
ideas?

//
objRange.FormatConditions.Add(Excel.XlFormatCondit ionType.xlCellValue,Excel.XlFormatConditionOperato r.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.XlFormatCondit ionType.xlCellValue,Excel.XlFormatConditionOperato r.xlNotBetween,
"=1","=7").Interior.ColorIndex = 10;

Also, does anyone have a list of what these colorindex values are?


--
ubsman
------------------------------------------------------------------------
ubsman's Profile: http://www.excelforum.com/member.php...o&userid=36926
View this thread: http://www.excelforum.com/showthread...hreadid=566350

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Format Excel 2007 Marilyn Excel Discussion (Misc queries) 3 May 14th 09 08:46 PM
Saving Excel 2007 conditional formatting in Excel 2003 format [email protected] Excel Discussion (Misc queries) 0 March 28th 08 06:42 AM
Conditional Format - Excel 2007 6538[_2_] Excel Discussion (Misc queries) 1 March 2nd 08 08:34 AM
New Conditional Format Overriding Previous Conditional Format Rene Excel Discussion (Misc queries) 3 February 27th 08 06:08 PM
conditional format a date in Excel copteral New Users to Excel 4 February 17th 06 10:08 PM


All times are GMT +1. The time now is 12:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"