+ Reply to Thread
Results 1 to 10 of 10

Automatic time and date change

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    21

    Automatic time and date change

    i am trying to make one cell automatically change to current date and time when the cell next to it has changed value. ive search other posts but cannot figure this out. so if cell A1 changes value cell B1 should automatically fill with current date and time cell A1 changed value. Thanks

  2. #2
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Automatic time and date change

    See attached- a solution using VBA- I think this is what you wanted- when you change the value in cell A1 and hit enter the date and time in b1 l will change

    If you require an explanation just ask

    Regards
    Strud
    Attached Files Attached Files
    Last edited by strud; 02-14-2014 at 12:00 PM.

  3. #3
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Automatic time and date change

    would actually work better if the module code is:

    Please Login or Register  to view this content.
    (the code on the worksheet is fine though)

    Regards
    Strud
    Attached Files Attached Files
    Last edited by strud; 02-14-2014 at 12:07 PM.

  4. #4
    Forum Contributor
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    147

    Re: Automatic time and date change

    Hi hitech,

    Here is another VBA solution. Use View code by right clicking the sheet you want this in and you can make the WatchRange for whatever column you like


    Please Login or Register  to view this content.
    Hope this helps.
    ----
    Mark threads as Solved
    Star those that help

  5. #5
    Registered User
    Join Date
    11-14-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Automatic time and date change

    I guess im really not understanding the scripts and where to place them. I have attached a copy of the sheet. im also looking to make it so if the column named status shows a value of not interested to make the whole row red. if it has any of the other options in the drop down to make the whole row green
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-28-2013
    Location
    Phoenix, Arizona
    MS-Off Ver
    Excel 2010, 2013
    Posts
    69

    Re: Automatic time and date change

    I recently added this to a worksheet. F11 to open VBA. Select the worksheet you want this to run on. Change the column number to the column you want watched (here it is 5). It also allows a cut and paste of multiple rows.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    147

    Re: Automatic time and date change

    Hi Hitech,

    I downloaded your spreadsheet and made the following changes.

    - The VBA Script I posted earlier is in the Code for the Leads sheet. Now when you enter a salespersons name, it will autofill the current date in column B

    -- I used conditional formatting so that if you select NOT INTERESTED in column H, it highlights the row RED

    --- There is also a dropdown list in Column H for you to select the Status code based on the list you had in the Data tab. Use Data validation to create dropdown lists.

    I recommend taking a look through the formatting so you can become more familiar with how this was done.

    Hope this helps.

    salesleadtracking.xlsm

  8. #8
    Registered User
    Join Date
    11-14-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Automatic time and date change

    thank you very much it works. I was trying to find where you set it to be red if NOT INTERESTED is selected to see if I can do something with other colors for other values in that cell. where did you set the formatting for that?

    thanks again

  9. #9
    Forum Contributor
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    147

    Re: Automatic time and date change

    You are welcome hitech.

    The formatting is on the Home Ribbon .. about the middle of the ribbon is Conditional Formatting .. Select Manage Rules from the dropdown to see the way that is setup.

    Let me know if you have any other questions.


    ---------------------------------
    Don't forget to mark the thread as Solved.
    Click on the star for everyone that helped with your question to show you appreciate their time.

  10. #10
    Registered User
    Join Date
    11-14-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Automatic time and date change

    Thank you I see it now and it works. I appreciate your help

+ 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. automatic change of date according to month
    By marija144 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2013, 05:09 PM
  2. [SOLVED] Automatic Date Update/Change
    By *C* in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-27-2012, 02:59 PM
  3. Change date automatic in an excel column
    By Dahlgren in forum Excel General
    Replies: 2
    Last Post: 04-22-2012, 11:05 PM
  4. Date and time calculations and automatic date changes
    By Arlette in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-09-2006, 05:25 AM
  5. Automatic date and time updation
    By Qlychap in forum Excel General
    Replies: 12
    Last Post: 07-21-2006, 10:00 AM

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