Results 1 to 2 of 2

Pivot Table - Conditional Formatting

Threaded View

  1. #1
    Registered User
    Join Date
    08-22-2012
    Location
    Ipswich, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    27

    Pivot Table - Conditional Formatting

    Hi Guys,

    I'm stumped at the moment in trying to get my conditional formatting working on my pivot table.

    It seems to be working when a result equals 0 but when trying to match the text of 0% it inserts the ' on either side and therefore doesn't work but I assume the ' is needed to notify Excel it is a string.


            .PivotSelect "'Recovery Rate '", xlDataOnly
                With Selection
                .FormatConditions.Delete
                .FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, Formula1:="0"
                .FormatConditions(1).Interior.ColorIndex = 37
                .FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, Formula1:="'0%'"
                .FormatConditions(2).Interior.ColorIndex = 37
                End With
    Any pointers in the right direction would be much appreciated.
    Last edited by lewny1983; 09-26-2012 at 02:38 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1