+ Reply to Thread
Results 1 to 17 of 17

Problem with protecting workbooks which have lists.

  1. #1
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Problem with protecting workbooks which have lists.

    Hello

    I originally posted this question at the bottom of a previous question, which I subsequently realised probably wasn’t a sensible thing to do, so I have posted the question afresh below. I hope I haven’t broken any forum rules be doing this.

    I am developing a recording programme for moths, which I’m pretty near to completing now, but I have hit an issue which I can’t seem to sort out and any help would be appreciated.

    The workbook contains four worksheets on which I am using tables to extend data, on two of the worksheets (‘Macro Moths’ and ‘Micro Moths’ worksheets). I want to protect certain areas of these two worksheets so that users don’t amend or delete any data. The data I wish to protect is linked to the ‘Index’ worksheet. However, once I protect the‘ Macro Moths’ and ‘Micro Moths’ worksheets, the tables on the no longer work, i.e. extend; can anyone help me please?

    To make things a little easier I have attached the workbook and the following details below are exactly what I wish to achieve:-
    1) On the ‘Macro Moths’ worksheet I want to protect columns A, B, C and E, but obviously for the table to extended when new data is added, rows have to be allowed to be inserted. Users will only be allowed to enter data in columns D and F:T.
    2) On the ‘Micro Moths’ worksheet I want to protect columns A, B, C and D, but obviously for the table to extended when new data is added, rows have to be allowed to be inserted. Users will only be allowed to enter data in columns E:T.
    3) I also want the complete ‘Index’ worksheet protected except for column G where there will be user input of data.
    4) The ‘User notes’ worksheet can be totally protected.

    To keep this recording programme as simple as possible I don’t wish to use any macros and/or any code. I am using Excel 2003.
    Thanks, Hawkmoth1
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-21-2011
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Problem with protecting workbooks which have lists.

    Select all, right click, format cells, go to Protection tab, tick Locked.
    Select column D (or whatever cell to be edited, right click, format cells, go to Protection tab, remove tick in "Locked".
    Then protect sheet with password. While protecting sheet, tick Select unlocked cells.

    Pls see the file attached. The sheet Micro Moths is protected (without password)
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: Problem with protecting workbooks which have lists.

    Thanks for this, but as regards the protection, this is exactly what I've been doing but once the protection has been set the list becomes deactivated - on the file you attached above you've actually applied the protection to the 'Macro Moth' worksheet and this has deactivated the list - any other suggestions with this issue please?

    hawkmoth1

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem with protecting workbooks which have lists.

    In order to be able to add to the table, you have to unprotect the worksheet, add your new data, unlock the cells added then re-protect the worksheet.

    It isn't clear how you are going to update the columns that you want protected. If columns A, B, C, etc. are protected, how is data entered into the remaining columns of the table relevant if there isn't an entry in the columns on the left (A, B, C, etc)?

    Are the columns that you want protected pre-filled with data before the other columns are added thus limiting the data to be entered to data that is relevant to the pre-filled data?
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: Problem with protecting workbooks which have lists.

    The problem I have here is that I intend to send this recording programme out to various recorders who have various degrees of competence, that's why I need to protect the various parts of the worksheet before I send it out to them.

    The columns I want to protect are not pre filled with data, they are linked to data in columns on the ‘Index’ worksheet using formula e.g. . The data in the remaining columns F:T is inputted by the user as this would be their own recording information pertaining to each individual record.

    Here is a little more information for you. Using the ‘Macro Moths’ worksheet as an example. When a species is added to the next empty row under the ‘Species Common Name’ the list expands and relevant most important data for that species is added automatically (from the ‘Index’ worksheet) to column A, B, C and E leaving the user to manually enter other less critical recording information on all the remaining cells in that row.

    I hope this makes thing a little more clear.

    Hawkmoth1

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem with protecting workbooks which have lists.

    This, I think is what you want to do. I unlocked the cells that should be given access to and locked the others. The worksheets are protected without a password so just click unprotect to get access. The formulae have been copied down the worksheets to row 100. You might want more.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: Problem with protecting workbooks which have lists.

    Ok, I can see what you’ve done here and yes your suggestion does work, so thanks for that, but I was really trying to avoid entering formula down the worksheets as this is why I decided to have the ‘list approach’ as the formula is only added to each row as each record is entered.

    Apart from my point above the other issue I would have with your suggestion is that different recorders would use the programme entering vastly different amounts of records, therefore I wouldn’t possibly know how for down to pre load formula. Apart from that, pre loading a lot formula quickly increases the size of the file.

    Hawkmoth1

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem with protecting workbooks which have lists.

    There are limitations that you are working with. You don't want to use macros so you can't unprotect then re-protect the worksheets as required.

    I don't have version 2003 so there is only so much that I can test.

    I think that you might be "up against it" because the cell protection isn't dynamic. It would be nice if it could be part of table properties...formulae and formatting are copied down with the addition of new rows but excel just doesn't work that way with cell protection.
    Last edited by newdoverman; 03-27-2015 at 07:31 PM.

  9. #9
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: Problem with protecting workbooks which have lists.

    Thanks Newdoverman, I really appreciate all your efforts, but as you’ve said, you are rather limited if you can’t test anything on Excel 2003. Do you have any other suggestion for a ‘workaround’ perhaps, or does anyone else have any thoughts or ideas regarding my issue.

    Hawkmoth1

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem with protecting workbooks which have lists.

    This is just grasping at straws.

    Perhaps a user form might work. An expert in VBA would be able to tell you. I'm just trying to learn VBA and haven't reached near that point yet. I have my doubts though that this would work the way you want.

    With several people using the workbook, is the purpose of the workbook to update a master workbook or is it just for the person who uses the workbook? If it was for updating a master workbook you could have the new data sent in to do the update and have the data deleted from the "source" workbooks.

    If it is just for the person filling in the data, I would fill in the formulae a long way and protect the worksheet. Have a second worksheet ready to be used when the first one gets "filled". You could have instructions on how to copy the worksheet into a new worksheet and delete the data in the new worksheet so that the person involved could continue on as required.

    I have the feeling that there just isn't an "ideal" solution available.

  11. #11
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: Problem with protecting workbooks which have lists.

    Thanks again Newdoverman, it’s really good of you to spend time considering my issue.

    The data which users record is sent to me at the end of each calendar year and then I add it to a ‘master database’. This process can’t be done automatically as all data has to be checked and verified (my me) before it is manually added to the database.

    Your idea of filling the formulae a long way and protecting the worksheet and then starting a new worksheet is not a bad idea and probably my best option at this time.

    If you don’t mind I won’t actually tag this post as solved for a while, just in case someone else (or you) comes up with an alternative suggestion. Thanks again.

    Hawkmoth1

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem with protecting workbooks which have lists.

    I would suggest that you strip all unnecessary data and worksheets from the workbook that are not required for the data entry. For example on the Index worksheet columns G and further are not required for data entry on the Macro Moths and Micro Moths worksheets. This would make the distributed workbooks somewhat smaller and possibly more responsive on the other computers.

  13. #13
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: Problem with protecting workbooks which have lists.

    Thanks for that suggestion - I am currently reconsidering all my options.

    I am also wondering whether I could possibly come at this problem from a slightly different direction. Rather than generally protecting the columns I need protecting could I possibly just protect the formulae in the columns - do you think I would be able to use the 'list' in an active way then?

    Hawkmoth1

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem with protecting workbooks which have lists.

    To protect the formulae you have to protect the cells so there really isn't anything to be gained.

    Looking at your workbook, I am wondering, not knowing anything about moths, if you need to include columns A, B and C on the Macro and Micro Moths worksheets. Does this data enhance the data entry in any way? Is this data required for the entry of new data.

    To ease the "pain" of updating the master record once a year, perhaps you could have two data entry periods. Everyone would have more up to date data more frequently and you would have half the work at any one time in the updating of the data.

  15. #15
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: Problem with protecting workbooks which have lists.

    Ok, thanks for confirming that protecting formulae won't help me.

    The data in columns A, B, and C on both the Macro and Micro Moths worksheets is actually needed as it becomes part of the record which is stored on the master database.

    Your last point isn't very practical as verifying and checking records is very time consuming, that's why it's done during the winter months, when there's more time on my hands, therefore it can only be done once a year.

    I have had another idea, it might be a bit wild, but it's worth a mention - would this be possible to have a formula in the 'Species Common Name' column on the 'Macro Moths' worksheet and in the 'Species Latin Name' column on the worksheet which the user would automatically switch protection off when the cell is selected and switch it back on when the cell is deselected?

  16. #16
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Problem with protecting workbooks which have lists.

    That would put you back into using macros and I'm not at all sure that it would benefit you. I think that would open up a hole in that on the surface of it one could select a protected cell and while that cell is selected select a whole range of cells...could be wrong on that but I think you would be playing with fire.

  17. #17
    Forum Contributor
    Join Date
    01-07-2015
    Location
    Mid Wales, UK
    MS-Off Ver
    Office 2003
    Posts
    115

    Re: Problem with protecting workbooks which have lists.

    Thanks newdoverman - it looks like it's back to the drawing board then!

    Hawkmoth1

+ 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. Protecting and Unprotecting VBA for multivalued lists
    By kraszac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2013, 04:45 PM
  2. Password protecting workbooks
    By lurchybold in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2011, 06:41 AM
  3. protecting worksheet with drop dowm lists
    By Logansar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2008, 03:38 PM
  4. protecting worksheets/workbooks
    By AlienBeans in forum Excel General
    Replies: 2
    Last Post: 10-31-2006, 06:28 AM
  5. Protecting lists
    By lambertdarr in forum Excel General
    Replies: 1
    Last Post: 04-19-2006, 09:03 AM

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