Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default VSTO: ConditionalFormatting not working

Folks,

I'm trying to add a conditional format rule to a cell using Visual Studio
Tools for Office.

This code and others like it

((Excel.Range)rng.Cells[x,colnum]).FormatConditions.Add(
Excel.XlFormatConditionType.xlCellValue,
Excel.XlFormatConditionOperator.xlBetween, "=0.9999", "=100000");

cause a nasty exception that returns an error message featuring a
hexidecimal address where the error occurred.

Any clues?

--
Bob Sullentrup
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
VSTO David12345 Excel Discussion (Misc queries) 2 December 27th 05 08:14 PM
VSTO PasteSpecial Bob Sullentrup Excel Programming 2 November 3rd 05 10:26 PM
Excel in VSTO Milo Excel Programming 0 June 17th 05 02:57 AM
VBA, UDFs and VSTO Terence Craig Excel Programming 3 October 25th 04 07:57 AM
VSTO 2.0 No Name Excel Programming 1 December 8th 03 09:02 PM


All times are GMT +1. The time now is 01:35 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"