Unlocking VBA Scripts

Not related to a specific OLAP tool. (Includes forum policies and rules).

Unlocking VBA Scripts

Postby jim wood » Mon Jul 20, 2009 1:37 pm

Guys,

The company I work employed some consulants a couple of years ago and they built some good stuff in excel. The consultancy no longer exists and we want to make changes to the underlying VBA. The problem we have is that the VBA is password protected and they never left us with the passwords. Does anybody know if there is a way round this?

We are usig Excel 2003 SP2

Many thanks,

Jim.
Legal Advisory: These are my personal opions... My opinion is I'm right most of the time.
ACG TM1 / Essbase Consulting
Server(s): Windows Server 2008 SP1 64-bit. TM1 Version: 9.5.2 Client(s): Windows XP.
User avatar
jim wood
Site Admin
 
Posts: 2018
Joined: Wed May 14, 2008 1:51 pm
Location: 1639 Route 10, Suite 107, Parsippany, NJ
OLAP Product: TM1
Version: TM1 9.5.2 EV 9.5.0
Excel Version: 2007

Re: Unlocking VBA Scripts

Postby Alan Kirk » Mon Jul 20, 2009 9:05 pm

jim wood wrote:The company I work employed some consulants a couple of years ago and they built some good stuff in excel. The consultancy no longer exists and we want to make changes to the underlying VBA. The problem we have is that the VBA is password protected and they never left us with the passwords. Does anybody know if there is a way round this?


No easy way around it I'm afraid, Jim. (As in, unlike breaking worksheet or workbook protection, a few lines of code won't do it.)

I suggest that you take a look at this page on JE McGimpsey's site:
http://www.mcgimpsey.com/excel/fileandvbapwords.html

and this one on Chip Pearson's:
http://cpearson.com/excel/password.htm

Now I've never used any of the products / services either; I downloaded a demo of one a few years back which promised to return the first two characters of the password, and it did, without fail. (Can't recall the name of it now.) So some of these apps will clearly work, though you have to pay a few bucks for them.
"It's only 'hubris' if I fail."
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
User avatar
Alan Kirk
Site Admin
 
Posts: 3838
Joined: Sun May 11, 2008 2:30 am
Location: Sydney, Australia
OLAP Product: TM1
Version: 9.0 SP3 U9 32 bit-9.5.2 64 bit
Excel Version: XP to 2010

Re: Unlocking VBA Scripts

Postby lotsaram » Mon Jul 20, 2009 10:26 pm

Workbook and worksheet passwords are trivial to crack with VBA once the workbook is already open, however the workbook open and VBA module passwords have much stronger encryption and can only be cracked with brute force. There is software out there to break the passwords which Alan has provided links to but depending on the strength of the password and the algorithm the program uses it might still take hours and hours to break the password.

The company might not exist any more but why not call one of the consultants and ask for the password?
lotsaram
MVP
 
Posts: 1943
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TM1
Version: 10.1.1
Excel Version: 2010

Re: Unlocking VBA Scripts

Postby Wim Gielis » Thu Jul 23, 2009 7:48 am

Hi

I have a program to convert the VBA password into another password (that you know then). It cannot (or won't) tell you the previous password. If interested, leave me a PM Jim.

Wim
Best regards,

Wim Gielis

MS Excel Most Valuable Professional, 2011+2012
Senior TM1 consultant at Aexis, http://www.aexis.com
http://www.wimgielis.be ==> 62 full-length articles on TM1
Latest article: Creating a test cube including rules and data
Wim Gielis
MVP
 
Posts: 456
Joined: Mon Dec 29, 2008 6:26 pm
Location: Brussels, Belgium
OLAP Product: TM1
Version: TM1 9.5.2
Excel Version: 2010


Return to General

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Loading