+ Reply to Thread
Results 1 to 3 of 3

HELP - Creating a Log of changes

  1. #1
    Registered User
    Join Date
    03-11-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Ms Office 2010
    Posts
    9

    HELP - Creating a Log of changes

    Im almost a newbe! in vba

    Log a previous cell value and the current value when a change has occurred in a range.

    The Log entry shall be inserted on row 50 with a new row.

    So what is some of what is needed to be plotted down:

    current date and time,
    what cell,
    earlier value,
    current - the value that has been changed to.

    This is one of 5 ranges that need to be monitored, this how far i have come..
    In the example below is col AP different responsibility areas
    and AO is who are the person that are in-charge.

    Please Login or Register  to view this content.
    Hope that some knows how or can give me directions or hints how it can be solved or partly done.

    Sincerely
    Magnus
    Last edited by jeffreybrown; 01-09-2013 at 11:41 AM. Reason: Please use code tags...Thanks.

  2. #2
    Forum Contributor PingPing's Avatar
    Join Date
    02-19-2010
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    158

    Re: HELP - Creating a Log of changes

    Use the Worksheet's "SelectionChange" event to capture the 'old' value.
    Then use the Worksheet's "Change" event to capture the 'new' value.

    For example:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-11-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Ms Office 2010
    Posts
    9

    Re: HELP - Creating a Log of changes

    Many Thanks to the solution you gave me.
    Now I've learned even more


    Here is what i have come up with.

    Please Login or Register  to view this content.

    Is there any optimization that can be done - in order to:
    make it faster,
    slim it down,
    make it less severe on CPU..

    Sincerely
    Magnus
    Last edited by Pegaasus; 01-10-2013 at 01:45 AM. Reason: Updated the code now its slimmer faster and less use of CPU

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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