+ Reply to Thread
Results 1 to 3 of 3

ActiveWorkbook.Unprotect not working

  1. #1
    Registered User
    Join Date
    06-26-2008
    Location
    California
    Posts
    8

    ActiveWorkbook.Unprotect not working

    I'm sorry, I'm sure you have gone over this a million times, I searched and couldn't find a specific answer to this problem.

    Basically, I have a master sheet, which goes out and opens many sheets (I will just use the first sheet as the example) and grabs data and returns it to the master. These sheets are password protected due to each analyst has there own sheet and we dont want others taking a peek.

    I am using ActiveWorkbook.unprotect Password:="password" so the code can automatically put the password into the sheet and grab the info, unfortunately the password prompt comes up every time and interupts. Everywhere I have read, says this is the correct command, any ideas what Im missing?


    Please Login or Register  to view this content.
    Any help would be appreciated. Thanks in advance.
    Last edited by Beall49; 06-26-2008 at 08:28 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Beall49,

    This syntax is correct if the workbook is already open. When opening the workbook for the first time, you need to include the password named argument in the Open statement...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    06-26-2008
    Location
    California
    Posts
    8
    Wow..


    ...You're good, that was awesome, it works perfect, thank you for your time.

+ 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