+ Reply to Thread
Results 1 to 2 of 2

Highlight Row - Limit the code to certain cells

Hybrid View

  1. #1
    Registered User
    Join Date
    05-09-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    22

    Highlight Row - Limit the code to certain cells

    I've been using the code below on several spreadsheets and find it very helpful. However as I'm sure you know it will remove any fill colours from a cell. This is really a particular issue with a spreadsheet I am now using and was wondering if there was either:

    1) A way to do something similar without affecting the fill colours
    Or
    2) Limiting this code to say rows 11 and below?

    Thanks


    Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
    Cells.Interior.ColorIndex = xlColorIndexNone
    Target.EntireRow.Interior.ColorIndex = 44
    End Sub

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Highlight Row - Limit the code to certain cells

    deleted post
    Last edited by tom1977; 05-10-2012 at 05:07 AM.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

+ 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