Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default Conditional Formatting in 2007

Excel2007
I'm trying to write a small macro to add conditional formatting back
into a sheet after a pivot table has been refreshed (MS still don't
seem to have fixed the problem where cond.formatting is lost on
refresh).
The Pivots data areas are in D8:K200 and there is a formula (MAX) in
column R.
The following seems to produce strange results:

With ActiveSheet.Range("$D$8:$K$200")
.FormatConditions.Delete
.FormatConditions.Add xlExpression, , "=D8=$R8"
With .FormatConditions(1).Font
.Bold = True
.Color = -16776961
End With
End With

Does this work on other people's machines?
Does is produce strange results?

Any help greatly appreciated
JasonQ.
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 2007 Live Long & Prosper Excel Discussion (Misc queries) 4 May 17th 10 02:46 PM
Conditional Formatting in 2007 Bob Myers Excel Worksheet Functions 3 December 16th 08 03:18 PM
2007 Conditional Formatting BigDDDD Excel Worksheet Functions 1 September 2nd 08 02:46 AM
Conditional formatting in 2007 Fred Smith[_4_] Excel Discussion (Misc queries) 3 March 5th 08 09:03 PM
Conditional formatting 2007 Meebers Excel Worksheet Functions 2 August 13th 07 07:55 PM


All times are GMT +1. The time now is 07:50 PM.

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"