Results 1 to 14 of 14

Removing a KNOWN VBA password via VBA

Threaded View

  1. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Removing a KNOWN VBA password via VBA

    If you have already elminated SendKeys as an option, then you're out of luck. VBA does not expose the VBProject passwords in its object model. The only workaround is to use SendKeys to simulate you manually unlocking the project.

    If you Google you'll find many SendKeys techniques offered (the link above by Winon is good), and widely criticized as SendKeys is notoriously unreliable. I would not put this technique into a product I was giving OTHERS to use, and might only use it myself in the rarest of instances.

    I'm also going to watch this thread closely. If anyone breaks the forum rule regading offering solutions that overcome Excel's builtin securities, I'll shut this discussion down. Ok?
    Last edited by JBeaucaire; 03-09-2013 at 10:36 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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