+ Reply to Thread
Results 1 to 3 of 3

VBA macro to alter dialogues, super-protect workbook

  1. #1
    Registered User
    Join Date
    09-20-2019
    Location
    Cape Town, South Africa
    MS-Off Ver
    365
    Posts
    15

    VBA macro to alter dialogues, super-protect workbook

    Dear excel friends,

    I've a file I would like to prevent being (a) decrypted and (b) the vba project password being broken by brute force.

    Currently the workbook 1) opens with encryption password 2) requires users to enable macros to then unhide all vhidden sheets 3) with the save as command disabled and 4) individual sheets password protected. Unfortunately, and this is something I really don't understand, to me MS should have one additional layer of encryption superior to "password to open" and "password to modify" as this would simply(?) allow only authorised users to open/modify the file but not delete and therefore bypass the encryption passwords. If one protects the primary encryption, this also prevents the .zip unpack crack, no?

    So, my logic with (a) is, is it possible with custom vba macro that if a user goes File > Info > Protect Workbook > Encrypt with Password (but to deactivate this), the custom vba code generates a further pop-up box with its own superior "you shall not pass" password which, if correct, only then allows one to change/delete the primary encryption password?

    And, my logic for (b), a separate custom vba macro code to the above that for the vba project password pop-up changes that dialogue's cancel button to a "close excel" command?

    Many thanks

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

    Re: VBA macro to alter dialogues, super-protect workbook

    The cold, hard fact is that ANY Excel workbook a user can open, a user can BYPASS ALL OTHER PROTECTIONS in that workbook.

    If all worksheets start off very hidden except for a title page worksheet stating that the workbook must be opened with macros enabled, a user who could open the file with macros DISABLED would only see that worksheet AT FIRST. That user could then use VBA cracking code in other workbooks to break workbook protection and worksheet protection, then unhide all the worksheets. Unfortunately for you, the procedures to do this are fairly well known and easily available through web searches.

    As for VBA project passwords, they're even easier to crack.

    In short, any user who can open your workbook can remove any internal protections you try to impose. The only way to can achieve some level of true lock-down is by using .XLL and .DLL files for substantial parts of involved calculations. You could even add real-time authorization components to those. FWIW, I use @Risk at work, and my employer pays for a license for 10 simultaneous users. Past 10, the add-in won't load. You could perhaps use components in a .XLL or .DLL to perform checksums on the VBA project, and if it doesn't match the expected checksum, refuse to load/run. However, EXPECT everything in .XLS? files to be vulnerable to users who want to crack into them.

  3. #3
    Registered User
    Join Date
    09-20-2019
    Location
    Cape Town, South Africa
    MS-Off Ver
    365
    Posts
    15

    Re: VBA macro to alter dialogues, super-protect workbook

    Hi hrIngrv

    Thanks for the confirmation. Hopefully MS eventually sorts this out... I'll look into atRisk some more - the lead appreciated.

    Regards

+ 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. macro to Un protect a worksheet from another workbook
    By rajeev.raj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2019, 02:36 AM
  2. [SOLVED] Protect All Sheets in Workbook with Password Macro
    By Cardan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2018, 06:33 PM
  3. [SOLVED] VBA - Protect Sheet by super user or simple user
    By ozstrik3r69 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-12-2017, 10:01 AM
  4. [SOLVED] Macro to protect workbook With OUT password.
    By Mhay5656 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-02-2017, 09:34 AM
  5. Macro to create a workbook and password protect
    By SierraKilo78 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2014, 10:28 AM
  6. Macro to protect workbook not working
    By Crüe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2011, 03:50 AM
  7. Replies: 9
    Last Post: 07-25-2005, 08:05 AM

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