+ Reply to Thread
Results 1 to 2 of 2

VBA to unprotect worksheet as it works through folderpath

  1. #1
    Registered User
    Join Date
    02-28-2018
    Location
    Edinburgh
    MS-Off Ver
    2016
    Posts
    12

    VBA to unprotect worksheet as it works through folderpath

    Hi All,

    Ive compiled this code that runs through a folder and edits templates I have created however one of the sheets is protected and I cant seem to figure a way to unprotect each of these sheets as it works through the folderpath and thus leads to an error.

    Could anyone help me out on how to fix this ?

    EDIT : The worksheet that needs to be unprotected each time is WS1 ("Project Report")

    Thanks in advance

    Code :

    Please Login or Register  to view this content.
    Last edited by Bisky; 08-27-2018 at 08:22 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: VBA to unprotect worksheet as it works through folderpath

    Without seeing the file for context it's difficult to advise where and how to change the code.

    Perhaps attaching it would be a good idea, or at the very least advise which row in the code above throws up the error due to the protected sheet.

    BSB

+ 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. [SOLVED] Macro Unprotect works 99 out of 100 times
    By NewYears1978 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-26-2017, 11:30 AM
  2. Macro Unprotect works 99 out of 100 times
    By NewYears1978 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-19-2017, 05:38 PM
  3. Macro copy data from folderpath to new workbook without open the folderpath
    By nspeng87 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-12-2017, 02:43 AM
  4. [SOLVED] Specify FolderPath from user-supplied value in cell
    By Jonny_XL in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-13-2016, 12:50 AM
  5. Unprotect & Protect Multiple works sheets with a Macro
    By robertguy in forum Excel General
    Replies: 3
    Last Post: 03-21-2013, 02:46 PM
  6. Macro to unprotect then reprotect sheet only works once
    By Puffy1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2012, 12:48 AM
  7. Why 'Unprotect' works for 2003 but not 2000?!
    By OrientalPearl in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-02-2006, 08:50 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