+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Macro for date related conditional formatting

  1. #1
    Registered User
    Join Date
    09-29-2010
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 2007
    Posts
    2

    Macro for date related conditional formatting

    Hi all....!

    I have a spreadsheet that I use to dump large amounts of data in, many rows and many columns. The number of rows vary each time I use this spreadsheet. What I want to do is write a macro where a user can click on a button and 1- column b will be sorted in descending order (these are dates- sometimes there will be 5 or 6 rows with the same date) 2- use conditional formatting to highlight every other date group. Can someone help me? Thank you in advance!!!

    I want this: (date and description are in seperate columns)
    B C
    1/1/05 Description
    1/6/05 Description
    1/1/05 Description
    1/7/05 Description

    To look like this:
    1/1/05 Description
    1/1/05 Description

    1/6/05 Description
    1/7/05 Description

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: Macro for date related conditional formatting

    Hi jojara,

    Welcome the forum!!

    Run this code from the tab containing the data:

    Please Login or Register  to view this content.
    Regards,

    Robert
    Last edited by Trebor76; 09-30-2010 at 01:30 AM.
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

+ 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