+ Reply to Thread
Results 1 to 4 of 4

I want to search for a date in column and colour the row if there is a match

  1. #1
    Registered User
    Join Date
    03-20-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    I want to search for a date in column and colour the row if there is a match

    Guy I'm completely a novice to VBA in Excel. I'm trying to search a particular date in a column of data (though would like to have a range like start date 01/01/2014 to end date - 07/01/2014) and if there is a match colour the row but I kepy on having 'Runtime error 424'. Can anyone help to fix it, please.

    Below is my code:

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 03-20-2014 at 02:40 PM. Reason: added missing code tags, please read and follow the forum rules, link above in the menu bar. Thanks.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,910

    Re: I want to search for a date in column and colour the row if there is a match

    Try it this way:
    Please Login or Register  to view this content.
    You could also use Conditional Formatting to achieve the same result.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    03-20-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: I want to search for a date in column and colour the row if there is a match

    Thanks Bernie, it was perfect. you have just made my life very easy in my reporting.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: I want to search for a date in column and colour the row if there is a match

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 03-21-2014, 03:29 AM
  2. Formula to search column for match and output date in corresponding row
    By bpartin13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2013, 12:52 AM
  3. [SOLVED] Match search terms, and add data in next column. Multi search problem.
    By Wales MB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-23-2013, 06:10 PM
  4. Colour a cell if having a match in adjacent column
    By meetvivek72 in forum Excel General
    Replies: 3
    Last Post: 07-07-2011, 09:21 AM
  5. Search column for Dates and Colour Fill
    By Sinn in forum Excel General
    Replies: 1
    Last Post: 10-05-2007, 12:51 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