+ Reply to Thread
Results 1 to 7 of 7

Protect workbook from Ex-employees

  1. #1
    Registered User
    Join Date
    12-11-2007
    Posts
    7

    Protect workbook from Ex-employees

    How can I protect by workbook from ex-employees and the competition from using (I am aware of the weak security measures Excel offers, but something is better than nothing)? Each worksheet is password protected to slow down novice Excel users. However, ex-employees know the password. I was thinking if there was a way to have a changing password (which only a couple people would know) or have the worksheet look for a hidden file on our network, that one of these methods (or another) might work.
    Last edited by GForce1; 10-06-2008 at 02:42 PM. Reason: I am giving up and will hire assistance

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    You need to force the user to enable macros, displaying only a splash screen until they do (search for splash screen).

    Then in the Open event, just do a DIR on a network path inaccessible from outside; it will return a null string if the path is inaccesible, and you can close the workbook. Use a UNC path to avoid user drive mapping problems.

    Protect the VBA project with a long and random password.

    This is only as good as project protection, which is much stronger than sheet protection, but breakable to anyone determined to do so.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-11-2007
    Posts
    7
    I created a splash screen (my first time) and got stuck with the DIR. I assume you mean a directory using the dir function. I have the workbook looking for a file on our server after pressing the command button. It seems to work fine when the file can be found. But when the file can't be found (I shut off my wireless card), I get a run time error '52' and then can get into the workbook by selecting "End".
    Please Login or Register  to view this content.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    when you sack them ,don't upset them. job done

  5. #5
    Registered User
    Join Date
    12-11-2007
    Posts
    7
    I wish it was that simple. It is more likely that an employee would leave for what they think is "greener pastures" but they see the value of this spread sheet. This sheet now allows non-experts to design & price our product in minutes where it used to take hours for an expert to quote, and it is more accurate.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can do lots of things in VBA - lock the workbook to only one PC, etc. If the user doesn't enable macros then it won't matter.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  7. #7
    Registered User
    Join Date
    12-11-2007
    Posts
    7
    I am still struggling and need additional guidance with writing the code to check for a file, whether it is on our server or hidden on the computer, and not allow the file to be used if not present. I am beginning to read some books (am self trained by trial and error) but am under a tight schedule.

+ 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. Protect Workbook / Worksheets
    By StudentMod in forum Excel General
    Replies: 6
    Last Post: 10-26-2011, 05:45 AM
  2. Macro moves out of Active WorkBook. Why?
    By ulfah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2008, 01:14 PM
  3. Can someone explain this macro to me?
    By gav_69 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2007, 06:04 AM
  4. Protect Sheet is Protecting Workbook
    By jasoncw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2007, 07:06 PM
  5. How to protect a whole workbook in one time
    By Dave_Y in forum Excel General
    Replies: 2
    Last Post: 10-11-2006, 04:20 PM

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