Results 1 to 2 of 2

Conditional formatting in multiple cell based on a singe cell

Threaded View

Macster Conditional formatting in... 09-29-2014, 03:47 AM
Macster Re: Conditional formatting in... 09-29-2014, 04:12 AM
  1. #1
    Registered User
    Join Date
    01-19-2009
    Location
    Stockholm
    MS-Off Ver
    Excel 2003
    Posts
    29

    Conditional formatting in multiple cell based on a singe cell

    Hi!

    This might be a very simple problem but the solution eludes me.

    I'm trying to colour a set of cells in a row based on the value of a single cell value in that said row.
    The user enters a specific week in this case (ex: 40), the table is filtered based on the week (40) and the week after (41).
    The week after (41) is coloured in grey.

    What I want is that the cells on the row where the week=41, should also be coloured in grey (C through G)

    What I have now is:

     ActiveSheet.Range("B5").AutoFilter Field:=1, Criteria1:=WEEK, Operator:=xlOr, _
    Criteria2:=(WEEK + 1)
    
    With ActiveSheet.Range("$B:$B").FormatConditions _
     .Add(xlCellValue, xlEqual, "=" & WEEK + 1)
     With .Font
     .Bold = True
     .ColorIndex = 15
     End With
    End With
    Thanks in advance!
    Macster
    Last edited by Macster; 09-29-2014 at 04:10 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Conditional Formatting multiple column based on reference cell???
    By inincubus in forum Excel General
    Replies: 2
    Last Post: 01-23-2014, 04:04 PM
  2. Replies: 5
    Last Post: 12-07-2013, 02:21 PM
  3. Replies: 3
    Last Post: 11-08-2013, 03:10 PM
  4. Replies: 1
    Last Post: 08-20-2012, 10:36 PM
  5. Replies: 4
    Last Post: 01-31-2012, 04:36 AM

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