+ Reply to Thread
Results 1 to 6 of 6

Changing location of audit trail depending on username.

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    Huddersfield, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Changing location of audit trail depending on username.

    Hi

    I have a macro (below) that records an audit trail and it works well. However I use a shared workbook with 2 other users and when the workbook is saved only 1 persons audit log can be saved as the others are wiped over. Therefore i wanted the logs to be in seperate locations. Person A, data input from column 1 in "log" (as macro below) Person B, data input from column 8 and Person C, data input from column 15 all in "log" worksheet. When I try to write in that when If application.username="person A" then do a and If application.username="person B" then do B (another macro with "Cells(65000,8)"), the macro doesn't work. Any help would be appreciated.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by zbor; 05-16-2016 at 07:16 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Changing location of audit trail depending on username.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Registered User
    Join Date
    07-31-2013
    Location
    Huddersfield, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Changing location of audit trail depending on username.

    Hi

    I have a macro (below) that records an audit trail and it works well. However I use a shared workbook with 2 other users and when the workbook is saved only 1 persons audit log can be saved as the others are wiped over. Therefore i wanted the logs to be in seperate locations. Person A, data input from column 1 in "log" (as macro below) Person B, data input from column 8 and Person C, data input from column 15 all in "log" worksheet. When I try to write in that when If application.username="person A" then do a and If application.username="person B" then do B (another macro with "Cells(65000,8)"), the macro doesn't work. Any help would be appreciated.

    Please Login or Register  to view this content.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Changing location of audit trail depending on username.

    Something like this:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-31-2013
    Location
    Huddersfield, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Changing location of audit trail depending on username.

    Thank you, thats fantastic, I made a slight change so that the list for person B and C would start at the top of their list.
    Please Login or Register  to view this content.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Changing location of audit trail depending on username.

    Yes that's better.
    I didn't test mine code nor see your input data but it makes sense.

+ 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. Audit Trail
    By Moggzzz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2016, 06:48 AM
  2. Pseudo-audit trail for unlocking a doc?
    By Gunther Maplethorpe in forum Excel General
    Replies: 1
    Last Post: 01-15-2014, 02:42 PM
  3. Audit Trail
    By jenziepie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2013, 01:56 PM
  4. Doing an audit trail on multiple sheets
    By Nett in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-05-2013, 08:18 PM
  5. Excel Audit Trail?
    By jvest0648 in forum Excel General
    Replies: 1
    Last Post: 12-17-2011, 02:57 PM
  6. Track Changes - Audit Trail
    By ChemistB in forum Excel General
    Replies: 2
    Last Post: 10-27-2006, 02:16 PM
  7. Audit Trail
    By Pendelfin in forum Excel General
    Replies: 1
    Last Post: 01-23-2006, 11:10 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