+ Reply to Thread
Results 1 to 12 of 12

Make project unviewable

  1. #1
    Registered User
    Join Date
    01-14-2022
    Location
    awd
    MS-Off Ver
    365
    Posts
    11

    Make project unviewable

    I hope this isn't inappropriate. It's about passwords but not about breaking them.

    I have an addin which you can see in the vba editor and if you try to view it you get prompted for a password.

    I seem to recall that for added security there was something you could do so that instead of getting the password prompt you got a message that the project was unviewable.

    Does anyone know how to achieve this?

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Make project unviewable

    I know what you're talking about, it was a bit of a hack that relied on code not being visible when the workbook is shared, but I'm pretty sure it hasn't worked for a while. It was a bit pointless anyway as it's as easy to circumvent as the password.

  3. #3
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,462

    Re: Make project unviewable

    I am working on a long winded piece of code to do this - will come back when i have an update.

  4. #4
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,462

    Re: Make project unviewable

    Here we go then,

    I have only just cobbled this all together after finding the old way to do it via zip file editing.

    This is what the file does:
    1, Creates a folder called tmp in the same location as the selected file
    2, Creates a zip version of the selected file
    3, Extracts the zipped files to the tmp folder
    4, Edits a few bits in the .bin file within the zipped version
    5, Zips the tmp folder back into an excel file
    6, Deletes the files it created to process

    The end result should be that the code works but is not viewable in the newly created file. You will have a file in the same location as the one you selected appended with ' - Protected'

    I have not put any work into neatening it up or error handling and it will only work with '.xlsm' files at this stage.

    Give it a try

    Hope it helps
    Attached Files Attached Files
    Last edited by CheeseSandwich; 03-30-2022 at 10:35 AM. Reason: Changed attachment (again)

  5. #5
    Registered User
    Join Date
    01-14-2022
    Location
    awd
    MS-Off Ver
    365
    Posts
    11

    Re: Make project unviewable

    CheeseSandwich

    This is great and very impressive.
    Would it take much to get it to work with xlam and xlsb files?

  6. #6
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,462

    Re: Make project unviewable

    Give the attached a try
    Attached Files Attached Files
    If things don't change they stay the same

  7. #7
    Registered User
    Join Date
    01-14-2022
    Location
    awd
    MS-Off Ver
    365
    Posts
    11

    Re: Make project unviewable

    Fantastic. Really appreciate you sharing this.
    And if you note the replaced strings you can undo it too.

  8. #8
    Forum Contributor
    Join Date
    03-11-2021
    Location
    india
    MS-Off Ver
    365
    Posts
    161

    Re: Make project unviewable

    And if you note the replaced strings you can undo it too.
    I found that if you save file, the strings change so you cannot undo

  9. #9
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,462

    Re: Make project unviewable

    Thanks for sharing, always good to have a master copy of the file then just in case.

  10. #10
    Forum Contributor
    Join Date
    03-11-2021
    Location
    india
    MS-Off Ver
    365
    Posts
    161

    Re: Make project unviewable

    I try with xlam file but get "We found a problem with this workbook. Do you want to recover..."

    should it work with xlam?

  11. #11
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,462

    Re: Make project unviewable

    I could not get it to work with xlam files in the end unfortunately.

  12. #12
    Forum Contributor
    Join Date
    03-11-2021
    Location
    india
    MS-Off Ver
    365
    Posts
    161

    Re: Make project unviewable

    A pity. Still good though
    Maybe someone else can get to work. It's beyond me to try

+ 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. Project Unviewable
    By daddyg_76266 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 05-03-2015, 09:44 PM
  2. Replies: 3
    Last Post: 09-12-2014, 11:34 AM
  3. Project is unviewable
    By Remphan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-09-2013, 09:04 AM
  4. Project is Unviewable - VBA Project Protection
    By dadazs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2011, 08:50 AM
  5. Project Unviewable???
    By tanktata in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2006, 12:10 AM
  6. Project is Unviewable
    By fergusor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2005, 04:58 AM
  7. Project is unviewable
    By Fgomez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2005, 07:06 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