hjgoldstein
Programmer
I have an interesting one for you.
I produce a daily report in the form of a pivot table part of which has Conditionally Formatted Colour Scales set across ten columns. The code for the Conditional Formatting is:
For the last two days the conditional formatting has not displayed on the report. There is no apparent difference between the previous (working data) and the current (not working) data other than the number of records the pivot table is based on is >150 for the last two days.
If I manually select <=100 rows in the pivot (there are >300 including Row Labels (and sub-labels)) I can use the conditonal formatting but when I select >=101 I can't.
What is even stranger is I can copy the entire pivot data area (excluding headers and filters) into a new sheet the conditional formatting is copied in correctly which tells me that it is just the display which is causing the fault.
Any ideas, genii?
Aspiring to mediocrity since 1957
I produce a daily report in the form of a pivot table part of which has Conditionally Formatted Colour Scales set across ten columns. The code for the Conditional Formatting is:
Code:
Range("D9:M" & lngLastRowPivot).Select
Selection.FormatConditions.AddColorScale ColorScaleType:=3
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
Selection.FormatConditions(1).ColorScaleCriteria(1).Type = _
xlConditionValueLowestValue
With Selection.FormatConditions(1).ColorScaleCriteria(1).FormatColor
.Color = 8109667
.TintAndShade = 0
End With
Selection.FormatConditions(1).ColorScaleCriteria(2).Type = _
xlConditionValuePercentile
Selection.FormatConditions(1).ColorScaleCriteria(2).Value = 50
With Selection.FormatConditions(1).ColorScaleCriteria(2).FormatColor
.Color = 8711167
.TintAndShade = 0
End With
Selection.FormatConditions(1).ColorScaleCriteria(3).Type = _
xlConditionValueHighestValue
With Selection.FormatConditions(1).ColorScaleCriteria(3).FormatColor
.Color = 7039480
.TintAndShade = 0
End With
For the last two days the conditional formatting has not displayed on the report. There is no apparent difference between the previous (working data) and the current (not working) data other than the number of records the pivot table is based on is >150 for the last two days.
If I manually select <=100 rows in the pivot (there are >300 including Row Labels (and sub-labels)) I can use the conditonal formatting but when I select >=101 I can't.
What is even stranger is I can copy the entire pivot data area (excluding headers and filters) into a new sheet the conditional formatting is copied in correctly which tells me that it is just the display which is causing the fault.
Any ideas, genii?
Aspiring to mediocrity since 1957