+ Reply to Thread
Results 1 to 4 of 4

Conditional Format-apply to every row

Hybrid View

  1. #1
    Registered User
    Join Date
    07-30-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    51

    Conditional Format-apply to every row

    The format code is

    
    Sub highlight()
        Range("A12:F12").Select
        Selection.FormatConditions.Delete
        Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=$A$6=$E$12"
        Selection.FormatConditions(1).Interior.ColorIndex = 27
    End Sub

    I just need this to apply to every row from a12:f12 to a:512 to f512. I cant drag format since it needs to apply to individual row

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    re: Conditional Format-apply to every row

    It's a little hard to guess what you're trying to do. Maybe this:
    Sub highlight()
        With Range("A12:F512").FormatConditions
            .Delete
            .Add Type:=xlExpression, Formula1:="=$A6=$E12"
            .Item(1).Interior.ColorIndex = 27
        End With
    End Sub
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-30-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    51

    re: Conditional Format-apply to every row

    I select a12:f12

    Conditional Format

    Formula

    if a6=e12 then highlight row

    that formula need to applied to every row until a512:f512

  4. #4
    Registered User
    Join Date
    07-30-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    51

    re: Conditional Format-apply to every row

    Please help

+ Reply to Thread

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