+ Reply to Thread
Results 1 to 8 of 8

Want to track the number of times a cell is changed and the date it was last changed

  1. #1
    Registered User
    Join Date
    02-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Want to track the number of times a cell is changed and the date it was last changed

    Hi, I'm looking for hep with a macro to:
    1. record in Column B the date the value of a cell in column A was last changed
    2. record in Column C the number of times the value of a cell in column A has been changed
    Thanks

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Want to track the number of times a cell is changed and the date it was last changed

    Copy the below code and do right click on sheet tab and select view code and paste it.

    Close the VBA window (Alt+Q to close VBA window) and return to that sheet and check.

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Want to track the number of times a cell is changed and the date it was last changed

    Thanks for your help, works perfectly
    Cheers

  4. #4
    Registered User
    Join Date
    02-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Want to track the number of times a cell is changed and the date it was last changed

    One more question, if I want to do the same thing for changes made to column E recorded in columns F and G what do I need to do to the macro? Ie. I would like to track changes to column A in columns B & C, and track changes to column E in columns F and G

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Want to track the number of times a cell is changed and the date it was last changed

    .Offset(Row,Column)

    We don't need any offsetting for row so I ignored the row part with blank and used only the column part in my code which is given below.

    Please Login or Register  to view this content.
    Column-B is the Next column of Column-A so only one column offset is enough so used the first line of code .Offset(, 1).Value for entering the date.

    Column-C is the Second column of Column-A so two column offset is enough so used the second line of code .Offset(, 2).Value for counting the changes.

    So make changes in the offset for adjusting the code

    Hope that clear

  6. #6
    Registered User
    Join Date
    02-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Want to track the number of times a cell is changed and the date it was last changed

    Sorry I meant I wasn't sure what to do to track the changes made to two columns, A & E. Ie

    Record information about changes to A in B & C - as you have solved above
    &
    Record information about changes to E in F & G

    Hope that makes sense

    Sorry I have no idea how to write code!

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Want to track the number of times a cell is changed and the date it was last changed

    Replace the previous code with the below one and check

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Want to track the number of times a cell is changed and the date it was last changed

    That works perfectly, thanks again!

+ 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] Blank Form print 10 times with one cell changed
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2014, 02:25 PM
  2. How to track which user changed a certain cell.
    By Zjak in forum Excel General
    Replies: 1
    Last Post: 12-07-2006, 06:16 AM
  3. [SOLVED] Date is being changed to a number (problem)
    By Luke in forum Excel General
    Replies: 2
    Last Post: 01-09-2006, 11:10 AM
  4. [SOLVED] I need to keep a count of the times a cell is changed
    By Paul Cahoon in forum Excel General
    Replies: 2
    Last Post: 12-29-2005, 11:15 AM
  5. [SOLVED] Count How Many Times A Cell's Value Has Been Changed
    By Avais in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-24-2005, 12:06 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