+ Reply to Thread
Results 1 to 11 of 11

Highlight rows of current week line items

  1. #1
    Registered User
    Join Date
    12-05-2013
    Location
    Where Am I
    MS-Off Ver
    Excel 2010
    Posts
    23

    Highlight rows of current week line items

    I have a running list of to-do items sorted by date due (the dates are in the "C" column and start at row 9 to make room for some title info.)
    I am looking for help with VBA code that would highlight the rows of items that fall in the current week or next 7 days, whichever is easier.

    Thanks for any help,

    Ekid
    Last edited by Mr_Ekid; 05-09-2014 at 11:12 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Highlight rows of current week line items

    Why don't you use conditional formatting for this?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    12-05-2013
    Location
    Where Am I
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Highlight rows of current week line items

    Would you please provide some context to use that line. I'm not sure how I can apply it.

    Thanks!

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Highlight rows of current week line items

    Sure. Here you are!!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-05-2013
    Location
    Where Am I
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Highlight rows of current week line items

    Much simpler... the conditional formatting is perfect. Thanks for showing me something new.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Highlight rows of current week line items

    You are welcome and thanks for the feed back.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

    Also take a look to the link to learn how to use CF.

    How can you use Conditional Formating.

    --In Excel 2007 and 2010, Conditional Formatting is in the Styles group on the Home tab. In Excel 2003, Conditional Formatting is on the Format menu. See here how you can work using CF.

  7. #7
    Registered User
    Join Date
    12-05-2013
    Location
    Where Am I
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Highlight rows of current week line items

    Fotis,

    One other question: based on the =WEEKNUM(TODAY())=WEEKNUM(C9) formula, how would you approach un-highlighting days of the week past the current day? (Only today plus the rest of the week would be highlighted)

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Highlight rows of current week line items

    Hello

    Sorry but i missed your last post.

    So in this case use this.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    12-05-2013
    Location
    Where Am I
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Highlight rows of current week line items

    Thanks, that works great!

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Highlight rows of current week line items

    .............................

  11. #11
    Registered User
    Join Date
    12-05-2013
    Location
    Where Am I
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Highlight rows of current week line items

    Also, Thanks for that link on conditional formatting. It is great!

+ 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. [SOLVED] Highlight current week number.
    By izy0502 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2014, 09:45 AM
  2. Excel 2007 : Highlight current week column
    By pm1927 in forum Excel General
    Replies: 2
    Last Post: 01-25-2011, 08:51 PM
  3. Highlight Only Current Week Based on Date
    By Kumara_faith in forum Excel General
    Replies: 10
    Last Post: 11-17-2010, 04:52 PM
  4. Highlight current week column
    By podge in forum Excel General
    Replies: 2
    Last Post: 04-06-2010, 10:29 AM
  5. Replies: 1
    Last Post: 07-13-2006, 06:20 PM

Tags for this Thread

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