+ Reply to Thread
Results 1 to 11 of 11

How to Protect an Excel File

  1. #1
    Registered User
    Join Date
    06-03-2020
    Location
    Toronto
    MS-Off Ver
    MS Excel for Mac Version 15.32
    Posts
    5

    How to Protect an Excel File

    Anyone know how to protect an Excel file? I'd like to sell the file online.

    Goal
    I would like to sell an Excel spreadsheet on my website, which is a Wordpress site, and "lock it” so that only paid users can use it.

    Research
    Here’s what I found so far:
    - Woo Commerce Plugin - "Software Add-On" is available for software licensing. Cost: $129 USD? billed annually.
    - Easy Digital Downloads Plugin - Software licensing extension is available. Cost $199 USD? billed annually.
    - XLS Padlock - Uses an activation key to unlock spreadsheet. Works with Woo Commerce. Cost: 139 EUR.

    Free Options
    Unfortunately, no free options. Do you know if there are any?

    Thank you in advance,
    =L=

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: How to Protect an Excel File

    sorry-delete
    Last edited by ORoos; 06-05-2020 at 09:58 AM.

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: How to Protect an Excel File

    .
    http://www.ayedeal.com/vbash/

  4. #4
    Registered User
    Join Date
    06-03-2020
    Location
    Toronto
    MS-Off Ver
    MS Excel for Mac Version 15.32
    Posts
    5

    Re: How to Protect an Excel File

    Thank you Logit. Unfortunately, the product you're suggesting isn't free. Nor is it Mac compatible.

    I was looking for something more DIY. Need advice how I can do this myself.

    Maybe an authorization key? Would have to be unique for each user.

    Or a locked header? So printed reports show user's email.

    Something that discourages sharing the file.

    Thanks again,
    =L=

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How to Protect an Excel File

    The only way to do that might be to save it as password protected, then sell them the password?

    Excel security is notoriously weak and easy to get around
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: How to Protect an Excel File

    .
    As FDibbins has pointed out, Excel is extremely weak on the security side. There are tons of websites that describe how easily it is to circumvent the
    built in security.

    I am not aware of any programs / software / code that would protect a workbook compatible with the MAC. It may be out there but I haven't heard
    of it.

    The software I recommended from Ayedeal is the best method I've located to date that does a good job of obfuscating the code and protecting the
    VBE from prying eyes.

    As much as you probably would hate to ... consider switching to a Windows O/S and rebuild your project. Or, rebuild your project in a secure programming
    language that requires compiling.

    Sorry

  7. #7
    Registered User
    Join Date
    06-03-2020
    Location
    Toronto
    MS-Off Ver
    MS Excel for Mac Version 15.32
    Posts
    5

    Re: How to Protect an Excel File

    FDibbins — Thank you. Yes, I think PW protection is necessary — for VBA Project Password — not the file. Unfortunately, If the file requires a PW, and I sell users the PW, then they can share the PW as easily as they share the file.

    Logit — Thank you. I learned how to protect a header and footer with VBA code. The code was kindly shared here: extendoffice.com/documents/excel/4135-excel-protect-header-and-footer.html

    The code sets the header and footer. I'd like to do the same and use a user's email address in the header or footer. But how can the user's email be automatically inserted into the code?

    I don't want to manually change the code for each user. Better if the user's email is a variable.

    I'm thinking, maybe this would work...

    3-Step Process
    1. Collect User's Email - This step is performed by Wordpress — not Excel — when a user pays for the file.
    2. Prep an XLSM File on the Server - Preparing the user's file includes:
    (a) Copying the master file
    (b) Opening the copy
    , and
    (c) Setting a variable — in Excel — equal to the user's email
    .
    3. Save and Send XLSM Copy to User - The user's file is saved and sent to the user.

    Variable
    The variable set is step 2(c) assumes that the VBA code shared on extendoffice's website can be modified to use a variable. Currently, the code uses constants, or hard-coded values.

    Next Steps?
    So, I guess it boils down to this: Is the process doable? And can a variable be used in VBA?

    =L=

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: How to Protect an Excel File

    .
    Leo D :

    I would think your idea is doable without having created such here.

    I'm concerned you have missed the point concerning Excel security. When creating a copy of the workbook to send to a customer, the programmer can incorporate all of
    the various means of security desired however, once the customer has in their possession the actual workbook .... Excel's lack of security still exists. Security was your
    original question and it still remains that Excel does not have any security.

  9. #9
    Registered User
    Join Date
    06-03-2020
    Location
    Toronto
    MS-Off Ver
    MS Excel for Mac Version 15.32
    Posts
    5

    Re: How to Protect an Excel File

    Original question remains: "How to protect an Excel file?"

    But I'd like to be more specific now: "How to set a VBA Project Password?"

    Should I start a new thread?
    =L=

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How to Protect an Excel File

    No you dont need to start a new thread, but it appears you have not grasped what is being told to you...

    Excel security, even with VBA, is weak at best, and anyone with some basic search skills can find ways to bypass that security. So, having said that, you can put whatever protection you want, onto a file, but most will be able to defeat that within a few minutes.

  11. #11
    Registered User
    Join Date
    06-03-2020
    Location
    Toronto
    MS-Off Ver
    MS Excel for Mac Version 15.32
    Posts
    5

    Re: How to Protect an Excel File

    Guys, I get it. Excel isn't secure. I'd still like to protect the file, or at least the VBA code.

    As the saying goes, “A lock only keeps honest people out.”

    All I want is to discourage the honest users.

    Cool?

+ 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] How to best protect an Excel file
    By L-Drr in forum Excel General
    Replies: 6
    Last Post: 08-11-2013, 06:19 AM
  2. Password Protect Excel File
    By akynyemi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2013, 09:03 AM
  3. [SOLVED] protect excel file from being copied
    By martinpols in forum Excel General
    Replies: 2
    Last Post: 01-04-2013, 11:14 PM
  4. Protect excel file from being copied
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2010, 02:44 PM
  5. [SOLVED] Password protect an excel file?
    By in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2009, 10:53 AM
  6. How do I use VC++6.0 to protect a excel file to readonly
    By gowinder in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2005, 10:05 PM
  7. How do I use VC++6.0 to protect a excel file to readonly
    By gowinder in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2005, 10:05 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