+ Reply to Thread
Results 1 to 2 of 2

Protecting Excel Workbook Information

  1. #1
    Registered User
    Join Date
    07-13-2018
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    16

    Protecting Excel Workbook Information

    Hi guys. Thank you in advance.

    So I created a workbook that houses my companies pricing information. I built it using VBA and is used by our sales staff to price out jobs company wide. Right now we just email updated versions of the software to the salesman and they keep it saved on their computers. But we have decided that the pricing information and VBA program needs to be kept within our own company. We're afraid someone will take this with them if they move onto another company.

    So my question is, Is there a way that we can set up an admin password in excel. So after awhile the password would time out and lock the salesman out until we reset the password. Or does anyone else know of a program that we could attach that would require a password that we could control.

    Please help me out. Any suggestion will be very helpful. Thank you!

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Protecting Excel Workbook Information

    There are products on the market which can make VBA modules unviewable, but I haven't used any of them. There's no robust way to protect formulas and worksheet data in any workbook users can open. If you find a reliable product for protecting VBA modules, you could use one UDF which does nothing but return a default Variant, which has the VBA value Empty and is treated like the value of a truly blank cell in cell formulas.

    Function q() As Variant: End Function

    Change all your formulas to =original_numeric_formula+q() or =original_text_formula&q(). Then if users open the workbook with macros disabled, all formulas calling q() will return #NAME? errors. You could add warning messages like =IF(ISERROR(q()),"YOU MUST OPEN THIS WORKBOOK WITH MACROS ENABLED!","") to inform your users that they have to enable macros to be able to use your workbook. Then you can add user authentication to Workbook_Open. If authentication fails, that event handler closes the workbook or perhaps clears all data from the workbook and saves/overwrites itself first then closes.

    Thing is you have to be able to protect VBA modules and you have to force users to open your workbook with macros enabled.

+ 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. Need help with password protecting an Excel workbook with sensitive information
    By jfrancis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-08-2019, 06:32 AM
  2. VBA Code for password protecting excel workbook
    By learningexcel12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2014, 11:02 AM
  3. Protecting information using multiple passwords in excel
    By chrsf249 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2013, 07:19 PM
  4. Protecting an Excel Workbook
    By Taffy0408 in forum Excel General
    Replies: 1
    Last Post: 08-22-2012, 07:26 AM
  5. [SOLVED] Protecting excel 10 workbook
    By mmccra2858 in forum Excel General
    Replies: 2
    Last Post: 06-25-2012, 11:02 AM
  6. Protecting Excel Workbook
    By Pigggy in forum Excel General
    Replies: 1
    Last Post: 12-08-2011, 09:59 PM
  7. Protecting a Workbook in Excel 2007
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 11-08-2007, 03:58 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