+ Reply to Thread
Results 1 to 2 of 2

unprotect a sheet with VBA

  1. #1
    Registered User
    Join Date
    02-26-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    40

    Smile unprotect a sheet with VBA

    I have about 100 files (each one sheet) that I have built a macro to do various thins to. I got through 50 of them only to find that the remaining 50 have been protected by the originator of the files. There is no password involved, they are simply protected. what code do i use in the beginning of my macro to automatically unprotect the sheets so the macro can run?

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: unprotect a sheet with VBA

    Try this code:
    Please Login or Register  to view this content.
    Last edited by tlafferty; 04-22-2011 at 09:47 AM.

+ 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