+ Reply to Thread
Results 1 to 2 of 2

Record when a workbook is opened, closed, saved, printed, protected and unprotected

  1. #1
    Registered User
    Join Date
    04-02-2012
    Location
    Earth
    MS-Off Ver
    Excel 2013
    Posts
    33

    Record when a workbook is opened, closed, saved, printed, protected and unprotected

    Hi so I have a workbook with a sheet called 'Events'. on the sheet i have a table with the following headings:

    Date Time Event ID User Workstation Comments

    I want to record when the work book is opened, closed, saved, printed, protected and unprotected by a user.

    So far the only two I cant do is protected and unprotected.

    I want to know what users are making changes that are protected by passwords, 99% of the time its by authorised people but occasionally someone knows a password they should and makes a change that causes all kinds of issues.

    The code I have so far for the the rest of the items is as follows:

    (sorry for all the comments helps me keep track of what is what and why so I can cannibalise on other projects)

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Record when a workbook is opened, closed, saved, printed, protected and unprotected

    There's no (decent) way to trap the event of protecting/unprotecting a worksheet.
    However, what you can do is trapping changes in the worksheet and then check if the user is autorized to make that change in that specific cell (or range of cells).
    And if not log the event.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

+ 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. [SOLVED] VBA to copy cell from opened or closed workbook into another workbook
    By megtoma in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2014, 04:22 PM
  2. [SOLVED] Copy a Worksheet from a Closed Workbook to the Current Opened Workbook
    By glennchung in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-28-2014, 12:55 PM
  3. Replies: 0
    Last Post: 04-02-2014, 03:25 PM
  4. copy a range from 2 closed workbooks to opened workbook
    By ahsanzafar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2012, 08:40 PM
  5. Replies: 1
    Last Post: 11-26-2011, 09:10 PM

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