+ Reply to Thread
Results 1 to 5 of 5

create a macro that turns cells red 10 days after initial data was added to the cell

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    16

    create a macro that turns cells red 10 days after initial data was added to the cell

    Hi everyone,

    I hope someone can help with this... I have a schedule where people enter data into a different columns called "motions" which are spread out through the chart. When data is put into the motion chart I have set it up so that the corresponding cell in the column to the right show the date that data was entered.

    What I need to do now is set up a macro, which turns the cells in the "motions" column red 10 ****business days**** after the data was initially entered *AND* to delete the data and cells 11 ****business days**** after the initial entry date.

    Any help would be very appreciated! Thank you!

    Here is what I have so far:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: create a macro that turns cells red 10 days after initial data was added to the cell

    I'd recommend using conditional formatting and the =WORKDAY function for the color coding. Then your macro should be simplified to just deleting rows with dates >10 workdays (which should be the same as >14 calendar days, correct? Unless you want to include holidays, which is where the WORKDAY function can help).
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    16

    Re: create a macro that turns cells red 10 days after initial data was added to the cell

    Ahh, yes! Thanks Pauley, I completely forgot about the holidays. That's a great idea.

  4. #4
    Registered User
    Join Date
    07-29-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    16

    Re: create a macro that turns cells red 10 days after initial data was added to the cell

    ...How would I go about doing this though?

  5. #5
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: create a macro that turns cells red 10 days after initial data was added to the cell

    Quote Originally Posted by bananius View Post
    ...How would I go about doing this though?
    Which part? Conditional formatting? Deleting rows? Using WORKDAYS in VBA? It seems like you know how to do some programming, so I don't want to answer things that are obvious to you.

+ 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. Create a average out of cell of data for certain days
    By excelnovice936 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-30-2013, 07:03 PM
  2. Replies: 1
    Last Post: 06-28-2012, 11:10 AM
  3. Replies: 0
    Last Post: 09-08-2011, 02:22 PM
  4. macro to create file for every new record added to the list
    By jarssonn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2010, 05:10 AM
  5. Run Macro after initial cell edit?
    By mrpunkin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2005, 08: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