Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8676625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:14:40+00:00 2026-06-12T20:14:40+00:00

This code has been floating around the net for quite a few years –

  • 0

This code has been floating around the net for quite a few years – it’s apparently able to provide a password for decrypting an excel spreadsheet that you don’t know the password to.

http://www.theofficeexperts.com/VBASamples/Excel02.htm

I’m interested in how this works but I don’t seem to be able to work it out. I’m assuming it’s encrypted under a certain value that can be gotten to in a number of ways (a few places on the net say it’ll give you the original password or another one that will work) sort of like a public key – you can have 100 public keys that all work with a single private one.

To me it seems like it’s creating integer variables and filling them with a specific number, before turning that number into the relevant characters. Wouldn’t these always be the same? If so, is there “master password” for Excel protection?

Thanks all!

EDIT: I’ve noticed the For n = 32 To 126 in the example code I posted. Cross referencing with an ASCII table that seems to be all characters from space through to tilde. Is this some sort of dictionary attack I’m not understanding due to syntax?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:14:42+00:00Added an answer on June 12, 2026 at 8:14 pm

    It is a small world, as the code indicates I posted that code at another forum around 10 years ago having seen it somewhere else – I think on John Walkenbach’s old web site

    It is important to note that this code protection applies to worksheet protection only – not to Excel’s file open or VBA passwords.

    • One example of this write-up in full is here (screenshot below)
    • googling excel sheet protection “test” and “zzyw” gives other references such as this from Tom Urtis

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having an error when using SMO. This code has been working in VB.Net 4
I've seen this code that's been floating around, and also the fixed? version. Basically
this code produces 17 error C2995: function template has already been defined; there was
I am trying to understand this simple hashlib code in Python that has been
This has been bothering me lately- when I use some code like below to
This problem has been bugging me for a long time. For example, the code
UPDATE 2011.09.13 This bug has been resolved by Adobe. The example code below now
I'm surprised I haven’t been able to find the solution floating around online. There
I’m 100% certain this code has been working before. Now it strangely doesn’t. The
The data structure of this code has to be how it has been written.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.