Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default problem with conditional formatting and VBA (excel 2007)

Hello,

i have a problem with conditional formatting and VBA (excel 2007).
at first here is a screenshot of my conditional formula
http://img156.yfrog.com/i/bugjz.png/

as you can see, the formula depends on B1 but it is relative. so far so good.
but if i go through the cells with VBA the formula for all cells is the
same, (e.g. =B4="yellow")

if i do the same thing in excel 2003, vba shows the correct formulas:
=B4="yellow"
=C4="yellow"
=D4="yellow"
=E4="yellow"
=F4="yellow"

is this a known bug or do i something wrong?

this is my testcode:

Sub test()
Set myRange = ActiveSheet.Range("B3", "F3")

For Each myCell In myRange
For Each myCondition In myCell.FormatConditions
MsgBox myCondition.Formula1
Next
Next
End Sub
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 Formatting in Excel 2007 Rajeev Rawat Excel Discussion (Misc queries) 2 February 19th 10 07:55 PM
Conditional formatting Excel 2007 Atri Excel Worksheet Functions 4 August 28th 09 08:13 AM
Excel 2007 - Conditional Formatting Problem with Percentages Caros Excel Worksheet Functions 3 March 12th 09 06:47 PM
Using conditional formatting in Excel 2007 Gunnar Boykin[_2_] New Users to Excel 3 February 6th 08 01:55 PM
Conditional formatting problem in Excel 12 / 2007 Chip Taylor Excel Discussion (Misc queries) 5 August 26th 07 07:36 PM


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