+ Reply to Thread
Results 1 to 4 of 4

VBA audit trail - trap and handle not work

  1. #1
    Registered User
    Join Date
    10-26-2018
    Location
    Prague
    MS-Off Ver
    2013
    Posts
    6

    VBA audit trail - trap and handle not work

    Hello,

    i have this code and he works good ,but when i use trap and handle cell, only the first value is logged to audit trail.

    Would you help me please?

    THANKS!

    Please Login or Register  to view this content.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: VBA audit trail - trap and handle not work

    What does "trap and handle cell" mean? What is the "audit trail"?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-26-2018
    Location
    Prague
    MS-Off Ver
    2013
    Posts
    6

    Re: VBA audit trail - trap and handle not work

    Oh sorry,

    Audit trail log all changes in sheet (exclude changes from blank cell) with address, user, date/time, old value, new value.

    Trap and handle I think black cross in right bottom corner of cell.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: VBA audit trail - trap and handle not work

    When you use the fill handle (when the cursor turns to a black +) to fill cells down, it expands the range and updates the cells in one atomic action. However, two events occur. First the SelectionChange event occurs, because you expanded the selection. In your code, this event causes PreviousValues to be updated, but it happens after the values on your worksheet have already been updated. So the code in Change thinks that there has been no change.

+ 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. VBA Script in regards to Audit trail
    By Christan321 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2017, 12:14 AM
  2. Audit Trail
    By thong127 in forum Excel General
    Replies: 2
    Last Post: 04-26-2017, 09:38 AM
  3. [SOLVED] Audit Trail with VBA!
    By Keibri in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-22-2016, 04:11 AM
  4. [SOLVED] Audit trail macro to handle insertion or row or column and the cut and paste functionality
    By zephyriswing in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-14-2016, 05:36 PM
  5. Audit Trail
    By Moggzzz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2016, 06:48 AM
  6. Audit Trail
    By jenziepie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2013, 01:56 PM
  7. [SOLVED] Audit Trail
    By Pendelfin in forum Excel General
    Replies: 1
    Last Post: 01-23-2006, 11:10 AM

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