Apply Conditional Format to Include Next Column, Same Row (2nd cell)

Katterman

Board Regular
Joined
May 15, 2014
Messages
103
Hello Everyone

I have a Pivot Table that when created it Conditionally formats a single cell based on its Value.

What I would like is for that same formatting to extend to the Next cell to the right ( Next Column, same Row )
no matter what the value is ( There is always a value but not specific. ). The Columns would always be the same
but the Rows the data lands on can always be different.

I've looked all over several forums and Google with no specific answer for this scenario.

Here is some of the Code

Code:
    Columns("I:I").Select
    Range("I34").Activate
    Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _
        Formula1:="=""VTOC"""
    Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
    With Selection.FormatConditions(1).Interior
        .Pattern = xlSolid
        .PatternColorIndex = xlAutomatic
        .ThemeColor = xlThemeColorLight2
        .TintAndShade = 0.599993896298105
        .PatternTintAndShade = 0
    End With

In the case above the cell that contains "VTOC" is formatted fine and is always found in Column "I" but not always on same row #
I'd like the cell next to "VTOC" (same row, Column "J") to also be formatted the same (That cell would contain numbers that are never the same as it's Daily Data pulled into this pivot table)

VTOC 544

**The Cell containing VTOC does have a Light Blue Background but not showing up here in this example **

Thanks In Advance for Any and All Assistance.

Scott
 

Some videos you may like

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Watch MrExcel Video

Forum statistics

Threads
1,109,197
Messages
5,527,376
Members
409,759
Latest member
KCH

This Week's Hot Topics

Top