+ Reply to Thread
Results 1 to 6 of 6

keeping track of a cells value

  1. #1
    Registered User
    Join Date
    10-22-2008
    Location
    pennsylvania
    Posts
    5

    keeping track of a cells value

    can someone help me by supplying code that will use cell A1 as an entry cell. And when you change A1's value, it moves the original value to A2. and when you do it again it moves A2 to A3 and then A1 to A2....indefinately

    I just need to enter new data and keep track of the old

    thanks!!!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello mtj2,

    Add this macro to the worksheet you want to track the changes on.
    Please Login or Register  to view this content.
    How to Save a Worksheet Event Macro
    1. Copy the macro using CTRL+C keys.
    2. Open your Workbook and Right Click on the Worksheet's Name Tab for the Worksheet the macro will run on.
    3. Left Click on View Code in the pop up menu.
    4. Paste the macro code using CTRL+V
    5. Make any custom changes to the macro if needed at this time.
    6. Save the macro in your Workbook using CTRL+S

    Sincerely,
    Leith Ross

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Maybe like this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    10-15-2014
    Location
    Rio Piedras, Puerto Rico
    MS-Off Ver
    Windows 7 Professional
    Posts
    2

    Re: keeping track of a cells value

    Hi Leith,

    I have a notes column in a spreadsheet, in which I want to be able to enter new notes but keep track of the old notes in a different sheet.
    I used this on my spreadsheet and it worked. However, I want the old data to be placed on a different sheet. I attempted to change it and failed. I am a novice when it comes to VB so, I'm sure I went about it all wrong. My intention was to place the old data from F4 on Sheet1 to A2,A3,A4 etc. on Sheet 2. This is how I tried to do it:
    Please Login or Register  to view this content.
    Basically, the notes section is used to give a status such "called parents on 10/14/14". The next day I would type in "Mom called back on 10/15/14". I want to be able to see the history of what has been written in the notes section.

    I would appreciate any help you can provide. Thanks in advance.

    Manny
    Last edited by Leith Ross; 10-15-2014 at 08:44 PM. Reason: Added Code Tags

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: keeping track of a cells value

    Hello rosegul0359,

    Welcome to the Fourm!

    Try this out and let me know it it is what you want.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  6. #6
    Registered User
    Join Date
    10-15-2014
    Location
    Rio Piedras, Puerto Rico
    MS-Off Ver
    Windows 7 Professional
    Posts
    2

    Re: keeping track of a cells value

    Hello again Leith,

    Thank you so much for speed response. I tried your code and it worked one time then it gave me an error message.
    "Runtime error '1004':
    Application-defined or object-defined error"

    I chose to Debug and it highlighted this in the code:

    Please Login or Register  to view this content.
    Not sure why its pointing to this, it seems in line with what the first code had.

    Any ideas? Again, thanks again for the speedy reply.

    Rosegul

+ 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