+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Create an archive or log of data on separate sheet

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    Canberra
    MS-Off Ver
    Excel 2007
    Posts
    11

    Question Create an archive or log of data on separate sheet

    Hi there!

    I'm a bit of a novice when it comes to these things, but I was hoping someone could help me! I have looked through the forum but couldn't find anything (so apologies if there already is an answer out there), but what I am trying to do is to create a 'log' or an archive of all data that is entered into one sheet on another sheet.

    Basically, the idea is that an initial entry is created on one sheet, however if revisions are made to that entry, then an archive is able to log both entries so the change can be recorded. At the moment I can get the data being copied across and the cursor to move down, yet when I make changes to the entry, it simply mirrors the changes on the archive sheet, rather than creating a new entry.

    I'm hoping this is an easy thing to fix!

    Thanking you all in advance!

    Arneld

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Create an archive or log of data on separate sheet

    Hello and welcome to the forum,

    Can you show us your code so we can help guide you to where the problem lies?

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    06-06-2012
    Location
    Canberra
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Create an archive or log of data on separate sheet

    The code I am using is here:

    Private Sub Worksheet_Activate()
    Dim Sheet As Worksheet
    For Each Sheet In Me.Parent.Sheets
    If Sheet.Name <> Me.Name Then
    If Sheet.Cells(Rows.Count, 1).End(xlUp).Row <> 1 Then
    Sheet.Range(Sheet.Cells(2, 1), Sheet.Cells(Sheet.Cells(Rows.Count, 1).End(xlUp).Row, 10)).Copy Destination:=Me.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0)

    End If
    Else
    Me.Range(Cells(2, 1), Cells(Rows.Count, 10)).Clear
    End If
    Next Sheet
    End Sub

+ 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