+ Reply to Thread
Results 1 to 3 of 3

Color cells if matching value exists

  1. #1
    Registered User
    Join Date
    07-08-2011
    Location
    New York City
    MS-Off Ver
    Excel 2010
    Posts
    23

    Color cells if matching value exists

    Hello all,

    I am working on a vba code where I want cells A:K in a row to be colored if the matching value for cell A1 in active sheet is found on a list in a different workbook.

    This is the code I came up with so far but I couldn't figure out how to tell it to proceed if matching value is found in range A1:A1000 in a different workbook. So far I can only manually plug in the value, but this is not what I want as I need it to find matching value on the list and color the cells.

    Please Login or Register  to view this content.
    I basically want it to find a matching value in column A range (lets say A1:A1000) and if found, to color the cells. If it doesn't find a match, he shouldn't do anything.

    I need help adding stuff/rewriting this piece of code. Thanks!
    Last edited by rainbowforest; 10-02-2011 at 02:54 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,965

    Re: Color cells if matching value exists

    Assuming that the other workbook is open use

    Please Login or Register  to view this content.
    Martin

    If my solution has saved you time and/or money, please consider sponsoring my run in the 2020 London Marathon in aid of Cancer Research UK.

    https://uk.virginmoneygiving.com/MartinRice

  3. #3
    Registered User
    Join Date
    07-08-2011
    Location
    New York City
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Color cells if matching value exists

    Quote Originally Posted by mrice View Post
    Assuming that the other workbook is open use

    Please Login or Register  to view this content.
    Excellent! That did the job. Thanks mrice.

+ 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