+ Reply to Thread
Results 1 to 7 of 7

Automatically Record Changing Cell Value ion Separate Sheet

  1. #1
    Registered User
    Join Date
    08-03-2017
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    3

    Automatically Record Changing Cell Value ion Separate Sheet

    I have a cell containing Profit/Loss that changes as I make changes to the sheet and I want the value of this cell to be recorded in Sheet2 in column A automatically each day so I have a list of past values. I'm really new to this and I've heard of macros but I don't know how to use them so if anyone has some code for this could you talk me through the steps of exactly what to do?

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Automatically Record Changing Cell Value ion Separate Sheet

    Without seeing your workbook, I'm doing this by trial and error. The following code should do what you want
    Please Login or Register  to view this content.
    Change Sheet1 A2 in the attached, to see the value being added to sheet2 column A
    Itsfurreal Automatically Record Changing Cell Value.xlsm
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    08-03-2017
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    3
    Quote Originally Posted by gmr4evr1 View Post
    Without seeing your workbook, I'm doing this by trial and error. The following code should do what you want
    Please Login or Register  to view this content.
    Change Sheet1 A2 in the attached, to see the value being added to sheet2 column A
    Attachment 531900
    Okay thanks, where do I enter that?

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Automatically Record Changing Cell Value ion Separate Sheet

    With the excel workbook open -
    Press Alt + F11 (opens VBA editor)
    In the Project - VBA Project pane on the left (usually) double click the sheet name that you want the code to be in (opens the editor window on the right (usually)).
    Copy the code I posted and paste it into the sheet editor window on the right.
    Then change A2 on the sheet you posted the code in.

  5. #5
    Registered User
    Join Date
    08-03-2017
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    3

    Re: Automatically Record Changing Cell Value ion Separate Sheet

    Okay this works, except the cell I'm changing is B9 so how do I adapt the code to accommodate this?

  6. #6
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Automatically Record Changing Cell Value ion Separate Sheet

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    EDIT** I forgot, you have to change the Target Column to 2 instead of 1
    Last edited by gmr4evr1; 08-06-2017 at 02:25 PM. Reason: Added edit

  7. #7
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Automatically Record Changing Cell Value ion Separate Sheet

    I started thinking about it and realized that with the code, and changes, I provided, if you change anything in column B it will trigger the macro. SO, I have another change for you
    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    This will only trigger the macro when B9 is changed.

    Here is the corrected code in full
    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: 17
    Last Post: 10-16-2017, 04:37 PM
  2. when run a macro, to record the totals of that cell in a separate sheet
    By chubbychub in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2016, 12:22 PM
  3. [SOLVED] automatically record data from a changing cell
    By rhaxx in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-10-2015, 08:40 AM
  4. Auto fill static cell on separate sheet based on changing cells in another sheet
    By lawrence24 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-15-2014, 12:31 PM
  5. How to keep record of invoices printed in separate database sheet (Please Help)
    By zaidbinsaleem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2014, 02:51 AM
  6. Automatically Changing a cell value and Record another cell value
    By edwin.wong in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2014, 07:39 PM
  7. Delete current record from data list on separate sheet?
    By SueJB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2012, 09:37 PM

Tags for this Thread

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