Hermanito
Well-known Member
- Joined
- Apr 4, 2007
- Messages
- 1,238
Hey all,
I'm struggling with the following: I've got a nice table in Excel 2007 that pulls data from Access 2007, it's a Query Table, so it's dynamic. It also gets one of those fancy tablestyles of Excel 2007.
What I want to be able to do is determine in VBA what the effective background colors for certain cells are...
I know that
does not return conditional formatting color information, but googling and searching the helpfile informed me that
should do just that.
The FormatConditions is a collection I need to loop through, there can be more than 1, and each can have a color, but when I try that code, I always get an empty FormatConditions collection back, even though the cells do have background colors...
What am I doing wrong here?
grts,
H
I'm struggling with the following: I've got a nice table in Excel 2007 that pulls data from Access 2007, it's a Query Table, so it's dynamic. It also gets one of those fancy tablestyles of Excel 2007.
What I want to be able to do is determine in VBA what the effective background colors for certain cells are...
I know that
Code:
mySheet.Cells(1,1).Interior.Color
Code:
mySheet.Cells(1,1).FormatConditions(1).Interior.Color
The FormatConditions is a collection I need to loop through, there can be more than 1, and each can have a color, but when I try that code, I always get an empty FormatConditions collection back, even though the cells do have background colors...
What am I doing wrong here?
grts,
H