+ Reply to Thread
Results 1 to 3 of 3

Pass protection from a master to a slave workbook

  1. #1
    Registered User
    Join Date
    09-05-2005
    Location
    Basingstoke, England
    MS-Off Ver
    2003
    Posts
    86

    Pass protection from a master to a slave workbook

    I have a master workbook with which I can produce slaves from but I am looking at keeping certain cells protected to stop deletion (dates etc). What I require is for the top 5 rows to be protected on each of the 4 week sheets where the dates etc are. I had played with protecting all the sheets and with unprotect then protect on the master but it did not carry over to the newly created slave, could someone point me in the right direction please.

    SOLVED: The code is not pretty but functional.

    Please Login or Register  to view this content.
    Last edited by Ducatisto; 05-08-2009 at 05:57 AM. Reason: Solved

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Pass protection from a master to a slave workbook

    Why don't you protect the cells in the original workbook/ The new workbook will have those cells protected
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    09-05-2005
    Location
    Basingstoke, England
    MS-Off Ver
    2003
    Posts
    86

    Re: Pass protection from a master to a slave workbook

    Quote Originally Posted by royUK View Post
    Why don't you protect the cells in the original workbook/ The new workbook will have those cells protected
    I do have them protected but a macro has to enter dates into protected cells and being protected it stops the macro. What I was looking for was for code to unprotect the sheets, let the macro run then reprotect the sheets and for that protection to carry over onto the slave. Thank you for your reply.

    Just to add, I have managed to keep the master protected after macros but the protection is not carried over to the slave if that helps.

    SOLVED. I managed to solve it by asking it to protect prior to save of slave and to reprotect after rehiding of sheets
    Last edited by Ducatisto; 05-08-2009 at 05:54 AM. Reason: Solved

+ 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