+ Reply to Thread
Results 1 to 8 of 8

Unlocking password protected VBA project

  1. #1
    Registered User
    Join Date
    05-29-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Unlocking password protected VBA project

    I am trying to unlock a password protected excel sheet programatically, by providing the password in code, using code found here

    I am successfully able to unlock the excel file, but I do not want the user to see any windows. I tried setting this setting: xlAp.Visible = False But I still see the Project Properties window. I am new to VBA programming. Can any one tell me how to hide all the windows in this process?

    Please Login or Register  to view this content.
    Also posted here
    Last edited by samrohn77; 05-29-2015 at 07:53 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,093

    Re: Unlocking password protected VBA project

    Your post does not comply with Rule 11 of our Forum RULES.

    Don't post questions regarding breaking or bypassing any security measure. Such posts will be deleted, and repeat offenders will be banned. This includes posting of links to sites that offer software, code or services to do this or posting of code to remove passwords
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-29-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Unlocking password protected VBA project

    I am not trying to break in a password protected VBA project. I am trying to provide the password in the code, and they programatically open the workbook using VBA and unlock it. You can clearly see that in the code.

    HTML Code: 

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,093

    Re: Unlocking password protected VBA project

    My apologies. I didn't look closely enough at the code; just got the gist and misinterpreted your requirement.

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Unlocking password protected VBA project

    Remember what the dormouse said
    Feed your head

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,576

    Re: Unlocking password protected VBA project

    Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and in future please edit add links to any and all cross-posts in any other forums (not just this site).

  7. #7
    Registered User
    Join Date
    05-29-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Unlocking password protected VBA project

    I was not able to find a solution for my issue on other forum. That is why I posted it here.

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,576

    Re: Unlocking password protected VBA project

    Quote Originally Posted by samrohn77 View Post
    I was not able to find a solution for my issue on other forum. That is why I posted it here.
    It's not problem samrohn77.
    You can do that.
    Just provide links so in case it's solved elswhere we can see that and we don't need to work on already solved question.
    Same for other forum, put link on this post so they can check is it answered here.

    Just to be forethoughtful.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unlocking protected cells, prevent incorrect password error
    By iisjman07 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2010, 10:51 AM
  2. Forgotten Password: Unlocking a 'Protected' worksheet
    By Moshsoft in forum Excel General
    Replies: 1
    Last Post: 04-21-2009, 09:20 PM
  3. [SOLVED] [SOLVED] Password protected VBA project
    By Tomasz Klim in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-12-2005, 01:05 PM
  4. [SOLVED] Password protected project
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2005, 09:05 AM
  5. [SOLVED] VBA project is password protected
    By Pat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2005, 04:06 PM

Tags for this Thread

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