+ Reply to Thread
Results 1 to 6 of 6

Record changes on another sheet by copying row

  1. #1
    Registered User
    Join Date
    01-15-2020
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    15

    Record changes on another sheet by copying row

    Hi All,

    I've scoured the forum and the internet to try and find a solution to my problem but can't quite find exactly what I need. I'm convinced this is a relatively simple problem to solve.

    I have a worksheet with 30+ columns and 200 rows and what I would like to do is whenever I make a change, copy the row with the cell I am changing to another sheet and highlight the cell that I have changed from with the previous data. I could probably record a Macro to do this but it would be very clunky and would be much more efficient using a simple VBA solution.

    The only additional piece of data that I would like to add to the row that wouldn't be present in the original sheet is to add the date and time in a new cell at the end and the user perhaps if there's a way of doing that, as many users have access to this sheet.

    Thanks in advance

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,025

    Re: Record changes on another sheet by copying row

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-15-2020
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    15

    Re: Record changes on another sheet by copying row

    I've created a dummy set of data to show what I am looking for. The 1st work sheet labelled data is the master data sheet where all changes are made. The 2nd worksheet labelled changes is where i would like to record the changes with the addition of the date/time and user.
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,025

    Re: Record changes on another sheet by copying row

    Something like:


    This code goes in the Data Sheet code module

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-15-2020
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    15

    Re: Record changes on another sheet by copying row

    Thank you very much for your help, this is almost spot on. One issue I have remaining is that it doesn't seem to record changes if the data is changed en masse by dragging across cells, if i want to click and drag to fill in multiple cells it only records the first change and none of the others, presumably because I haven't press the enter button after every change, is there a way to resolve this so that it updates the 2nd sheet on change rather than on enter press

    Does this solution effectively disable the undo button?
    Last edited by excelnovice264; 01-17-2022 at 01:41 PM.

  6. #6
    Registered User
    Join Date
    01-15-2020
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    15

    Re: Record changes on another sheet by copying row

    Ok so I've been testing this today and apart from the issue where you have to record a key press to register the change it also seems to add the date and user stamps within the last 2 columns of the data table on a larger data set rather than attach it to the end and I cannot see why whatsoever. Any help with this would be much appreciated.

+ 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. Copying A Record/Row from an ODBC-Downloaded Query When Record Meets Criteria
    By Saabra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-07-2020, 02:55 PM
  2. [SOLVED] Copying data over to a master record
    By tommypkoch in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-26-2015, 04:26 PM
  3. Macro To Record Copying and Pasting from Excel to Word?
    By MattyD89 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2014, 11:16 AM
  4. Replies: 1
    Last Post: 11-16-2012, 09:25 AM
  5. VBA for copy record to sellected 2 sheet & clear entry sheet for new record
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-24-2012, 10:54 PM
  6. Replies: 1
    Last Post: 11-18-2011, 01:25 AM
  7. Copying record sets to eliminate blank lines
    By EdMac in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-30-2007, 09:57 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