+ Reply to Thread
Results 1 to 10 of 10

update date to 10 days after another cells date

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    houston, tx
    MS-Off Ver
    2013
    Posts
    5

    update date to 10 days after another cells date

    I have two columns. One column shows a date that i last contacted a customer. the other column shows the date i intend on contacting them again. I would like the column that i intend to contact them again to automatically change to 10 days after the date that i contacted them... which i would insert manually. Anyone have a code for this?

  2. #2
    Registered User
    Join Date
    09-29-2014
    Location
    TIjuana, Mexico
    MS-Off Ver
    MSO 2010, MSO 2013
    Posts
    53

    Re: update date to 10 days after another cells date

    Try

    Please Login or Register  to view this content.
    put it in the Worksheet_Change coding section

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

    Re: update date to 10 days after another cells date

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-18-2015
    Location
    houston, tx
    MS-Off Ver
    2013
    Posts
    5

    Re: update date to 10 days after another cells date

    ok this worked in my test worksheet but when i tried putting it in my actual worksheet it didnt work. im going to attache my worksheet so you can see what i mean.CRM-devin.xlsm

  5. #5
    Registered User
    Join Date
    06-18-2015
    Location
    houston, tx
    MS-Off Ver
    2013
    Posts
    5

    Re: update date to 10 days after another cells date

    stnkynts...... when i pasted yours into a new module, for some reason it will not show up in my macros for me to run.

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: update date to 10 days after another cells date

    Quote Originally Posted by tabford View Post
    stnkynts...... when i pasted yours into a new module, for some reason it will not show up in my macros for me to run.
    Maybe I can help. It's not a macro you put in a module, it's a worksheet event module.
    Copy the code, right click the tab for the sheet you want the code to work on, choose view code and then paste it into the window.

    Also change the A:A in the code to G:G, you didn't provide a sample sheet so stnkynts wrote it for column A, there is a note regarding that at the top of the code.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  7. #7
    Registered User
    Join Date
    06-18-2015
    Location
    houston, tx
    MS-Off Ver
    2013
    Posts
    5

    Re: update date to 10 days after another cells date

    I provided a sample sheet in my reply. I will try it out and i did adjust the range accordingly. thank you.

  8. #8
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: update date to 10 days after another cells date

    Quote Originally Posted by tabford View Post
    I provided a sample sheet in my reply. I will try it out and i did adjust the range accordingly. thank you.
    The code was written before your sample sheet. The note in the code that was written before your reply said " 'assuming column A and column B", now do you understand my statement?

  9. #9
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: update date to 10 days after another cells date

    Here is some code you can run from a regular module that will update all your blank cells. Select the cells in column H and run the macro. From then stnkynts' code will run automatically anytime you change a date in column G.

    Please Login or Register  to view this content.

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

    Re: update date to 10 days after another cells date

    Exactly what skywriter said.

    In addition, if you want just a stand alone subroutine to update your dates then this would work.

    Please Login or Register  to view this content.

+ 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: 1
    Last Post: 05-26-2014, 03:46 AM
  2. How to update Text Box2 with date 14 days after selected date in Text box1...
    By mjc61 in forum Access Programming / VBA / Macros
    Replies: 6
    Last Post: 01-26-2014, 09:17 PM
  3. How to update Text Box with date 14 days after selected date...
    By mjc61 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-25-2014, 08:10 PM
  4. excel formula: days remaining=end date-todays date+extention days
    By fsprings in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-04-2013, 06:45 AM
  5. Date to update after 7 days Please
    By Steved in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-13-2006, 09:00 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