+ Reply to Thread
Results 1 to 4 of 4

How to write macro to change colour of rows

  1. #1
    Registered User
    Join Date
    02-03-2015
    Location
    Derbyshire
    MS-Off Ver
    2010
    Posts
    4

    How to write macro to change colour of rows

    Hope someone can help. I need a macro which will change the colour of a whole row in my data range, depending on the number of days overdue a task is. I want the macro to run when I open the file so I can see at a glance those tasks I need to chase up. I have a column with an IF function that works out the number of days overdue. I know the macro should be straightforward but I don't know where to start.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: How to write macro to change colour of rows

    I am more than willing to write a macro for you, however, have you thought about using Conditional Formatting?

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by stnkynts; 02-03-2015 at 06:43 PM.

  3. #3
    Registered User
    Join Date
    02-03-2015
    Location
    Derbyshire
    MS-Off Ver
    2010
    Posts
    4

    Re: How to write macro to change colour of rows

    Thanks! However conditional formatting works only on the cell with that value, it seems, and I need the whole row to change colour... And the macro to run automatically when I open the file...

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: How to write macro to change colour of rows

    See attached code in above post. Does this meet your needs?

+ 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. Macro to change colour of rows
    By bhodo in forum Excel General
    Replies: 3
    Last Post: 05-13-2010, 06:24 AM
  2. Formula to change rows a different colour?
    By FSt1 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 PM
  3. Formula to change rows a different colour?
    By John in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  4. [SOLVED] Formula to change rows a different colour?
    By John in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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