Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default FormatCondition.Type Property in Excel 2003 vs Excel 2007

Hi,

I noticed a change in the Type property as read in VBA for some conditional
formats in Excel 2007. If I have a conditional format in cell $A$1 that is
based on a formula like "=$B$5="Sales"", here is what I see when reading the
Type proprety between the 2 most recent versions of Excel:

Excel 2003:
MyCF.Type = 2 (xlFormatConditionType.xlExpression)

Excel 2007:
MyCF.Type = 1 (xlFormatConditionType.xlCellValue)

I see this result opening the exact same workbook in both versions of Excel.
This is causing a bit of a problem because I have VBA code that looks to the
Operator property when the Type is Cell Value. But, when the condition is
actually based on an expression the Operator property is undefined. I can
certainly add in some error handling, but why has this changed in the first
place? I'm using Excel 2007 SP1 (12.0.6323.5000) and Excel 2003 SP 2
(11.8120.8122).

Regards,
Mike
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
Excel 2007 versus Excel 2003 & Excel 97-2003 fully compatible Bumpersnesty Excel Worksheet Functions 0 April 26th 10 09:44 PM
caption property in command bar (excel 2003) jillc Excel Programming 2 August 30th 07 11:26 AM
2003-2007"unable to set the Left header property of the PageSetup Miri Excel Programming 2 August 14th 07 07:42 AM
updating Excel.FormatCondition greg Excel Programming 1 April 19th 07 10:12 PM


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