Results 1 to 9 of 9

Color row in range if any cell of that range is value

Threaded View

Rufles Color row in range if any... 03-09-2014, 05:22 AM
Rufles Re: Color row in range if any... 03-09-2014, 05:28 AM
john55 Re: Color row in range if any... 03-09-2014, 05:43 AM
Rufles Re: Color row in range if any... 03-09-2014, 06:03 AM
john55 Re: Color row in range if any... 03-09-2014, 06:56 AM
Rufles Re: Color row in range if any... 03-09-2014, 07:09 AM
john55 Re: Color row in range if any... 03-09-2014, 11:03 AM
Rufles Re: Color row in range if any... 03-09-2014, 11:39 AM
john55 Re: Color row in range if any... 03-09-2014, 11:45 AM
  1. #9
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Color row in range if any cell of that range is value

    try this
    Private Sub Worksheet_Change(ByVal Target As Range)
    myrow = ActiveCell.Row
    Dim myrange As Range
     If Not Intersect(Target, Range("o3:w1000")) Is Nothing Then
     Dim x As Long, strCells As String
         
        x = Target.Row
        strCells = "O" & x & ":W" & x & ""
        Range(strCells).Interior.ColorIndex = 15
     End If
    
    End Sub
    Last edited by john55; 03-10-2014 at 07:01 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  2. [SOLVED] vba code to change the cell color by looking in a range that contains the color index valu
    By ckklconner in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-24-2013, 09:15 AM
  3. Replies: 12
    Last Post: 09-18-2012, 03:13 PM
  4. Format color in cell range
    By navacastro in forum Excel General
    Replies: 2
    Last Post: 07-06-2011, 01:40 PM
  5. Setting Color of Range based on adjacent cell color
    By JimE in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-02-2009, 09:04 PM

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