Consulting

Results 1 to 4 of 4

Thread: Solved: Truly secure macro code with password?

  1. #1
    VBAX Newbie
    Joined
    Nov 2005
    Posts
    3
    Location

    Solved: Truly secure macro code with password?

    Hello all.

    Is it possible to actually protect macros from viewing in Office apps? It looks like there are a hundred cheap password crackers that claim to break any password I might create.

    I'm using Office 2002. Is the new version more secure?

    Thanks!

  2. #2
    Administrator
    Chat VP
    VBAX Guru johnske's Avatar
    Joined
    Jul 2004
    Location
    Townsville, Australia
    Posts
    2,872
    Location
    Quote Originally Posted by trekrtwo
    Hello all.

    Is it possible to actually protect macros from viewing in Office apps?...
    No, VBA is not a completely secure environment. It's only safe from the 'normal' users eyes, but before you get worried about it, consider this: do you think that those who have enough knowledge to crack your password would really be interested in any code you (or I) may write?

    Quote Originally Posted by trekrtwo
    I'm using Office 2002. Is the new version more secure?

    Thanks!
    Maybe a little...
    You know you're really in trouble when the light at the end of the tunnel turns out to be the headlight of a train hurtling towards you

    The major part of getting the right answer lies in asking the right question...


    Made your code more readable, use VBA tags (this automatically inserts [vba] at the start of your code, and [/vba ] at the end of your code) | Help those helping you by marking your thread solved when it is.

  3. #3
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Quote Originally Posted by trekrtwo
    Is it possible to actually protect macros from viewing in Office apps? It looks like there are a hundred cheap password crackers that claim to break any password I might create.
    Can you stop someone from getting access to view your code? No. Period. Office is not a secure environment for code at all. A knowledgeable person can access your protected code in less than five minutes. The only need to know what software to download, and it won't even cost them a dime.

    Quote Originally Posted by trekrtwo
    I'm using Office 2002. Is the new version more secure?
    No. Nor is 2003. It will be interesting to see if the next version imparts any more security though.

    If you want security, and you are above 97, you may want to try compiling a dll file using Visual Basic. That will protect it, although I believe that even those complied addins can be decompiled by someone who knows their way around it.

    Fact of the matter is that if your code is that confidential, you shouldn't be in an office app.
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  4. #4
    VBAX Newbie
    Joined
    Nov 2005
    Posts
    3
    Location
    Thanks. I was afraid that might have been the case.

    And, good point Johnske...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •