+ Reply to Thread
Results 1 to 5 of 5

unprotect 1500 files

  1. #1
    Registered User
    Join Date
    02-26-2013
    Location
    Vizag, India
    MS-Off Ver
    Excel 2010
    Posts
    5

    unprotect 1500 files

    Hi

    I have a unique problem of unprotecting 1500 files daily. We send the files with a protection and receive them after getting updates from the team.

    Earlier, we used to send the files unprotected and after receiving, I use a method of merging all of them after storing in a single directory and do the processing on single file.

    Now with Protection password set by me and sent across to the team, the merging fails with an error indicating that the sheet is protected and fails.

    As we are setting the password and know the password, we can unprotect manually - but time consuming and laborious. Can any one help?

    Thanks
    nadiminti

  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
    48,099

    Re: unprotect 1500 files

    use Sheets(".. whatever ..").Unprotect Password:="whatever"
    and Sheets(".. whatever ..").Protect Password:="whatever"

    before and after your merge code, respectively.

    Regards, TMS
    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
    02-26-2013
    Location
    Vizag, India
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: unprotect 1500 files

    Thanks Trevor - worked like a well-oiled engine. Great help...

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: unprotect 1500 files

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: unprotect 1500 files

    Also, please don't cross post without providing a link

+ 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