+ Reply to Thread
Results 1 to 3 of 3

VBA Code to unprotect VBA Module

Hybrid View

  1. #1
    Michael Beckinsale
    Guest

    VBA Code to unprotect VBA Module

    Hi All,

    Further to a recent post can anybody tell me how you unprotect a VBA Project
    in an external workbook using VBA code. I do know the password.

    All contributions appreciated

    Regards

    Michael Beckinsale



  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Michael Beckinsale

    I don't believe it can be done directly from VBA, whether you know the password or not. You could use the SendKeys command as a workaround, but it's a bit clumsy.

    HTH

    DominicB

  3. #3
    Bob Phillips
    Guest

    Re: VBA Code to unprotect VBA Module

    This has been answered many times before. Here is a typical response from
    Harald Staff

    Not possible without a little unreliable SendKeys to simulate actual
    keystrokes. Search http://groups.google.com/advanced_group_search for
    keywords "unprotect project" in group *excel*



    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Michael Beckinsale" <[email protected]> wrote in message
    news:%[email protected]...
    > Hi All,
    >
    > Further to a recent post can anybody tell me how you unprotect a VBA

    Project
    > in an external workbook using VBA code. I do know the password.
    >
    > All contributions appreciated
    >
    > Regards
    >
    > Michael Beckinsale
    >
    >




+ Reply to Thread

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