Closed Thread
Results 1 to 9 of 9

Protect sheet but keep table expandable

  1. #1
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132

    Question Protect sheet but keep table expandable

    Hi,

    REQUIREMENT:
    I have a sheet where I have a table with several columns. I need to make sure my user never changes a particular column which contains a formula. I would like my user to still be able to Add rows to my table via the TAB key and modify all other cells in the table which are not in the mentioned column.

    QUESTION:
    Is this possible?

    What I have tried:
    1. Select all worksheet cells > Format Cells > Protection > un-check Locked
    2. Select the Table column I want to protect > Format Cells > Protection check Locked
    3. Protect worksheet > "Allow all users of this worksheet to" check everything


    No matter what I try - once I have locked the sheet , my table losses it's little "pull down" triangle in the bottom right hand corner. Also, if I push tab no new rows are created.

    Thanks very much in advance,
    Michelle

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Protect sheet but keep table expandable

    Hello,

    this is a familiar scenario and there is no out of the box solution. I typically put a button on the sheet that runs some VBA to unprotect the sheet, insert a row, re-protect the sheet.

    cheers, teylyn

  3. #3
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132

    Re: Protect sheet but keep table expandable

    Thanks Teylyn - I was suspecting such an answer... I was just hoping (hoping!) that Excel 2013 had perhaps found a more eloqent solution. Thanks none the less... I think i spent about 2.5 hours trying to figure out the un-figrable

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Protect sheet but keep table expandable

    I would apply Data Validation over the top of the table column to only allow an arbitrary text string (eg, "Password") to replace the contents. That will automatically get pulled down with the autotable without changing it's behavior and will throw a stop sign with a customized message so you can tell the user why it's verboten.

    See attached.
    Attached Files Attached Files
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Protect sheet but keep table expandable

    Nice approach but people can still paste into the unprotected formula cells and thus remove the formula. And people will do that.

  6. #6
    Registered User
    Join Date
    12-17-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Protect sheet but keep table expandable

    I know this is a day late and a dollar short but this was my solution to a similar issue.

    Unprotect any column you want the user to be able to type in within the table and lock everything else.

    In the worksheet change event do as follows:

    Please Login or Register  to view this content.
    By the time you unlock the sheet it is too late to trigger the table to add a row on its own. But the value the user entered is there so reassigning it triggers the table to add the row. Then you just re-lock and its good to go.

  7. #7
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132
    Thank you Box Jockey

  8. #8
    Registered User
    Join Date
    11-25-2020
    Location
    earth
    MS-Off Ver
    2019
    Posts
    2

    Re: Protect sheet but keep table expandable

    hi, Box Jockey..

    i've try your solution, but nothing happen on mine :\

    please help

    Quote Originally Posted by Box Jockey View Post
    I know this is a day late and a dollar short but this was my solution to a similar issue.

    Unprotect any column you want the user to be able to type in within the table and lock everything else.

    In the worksheet change event do as follows:

    Please Login or Register  to view this content.
    By the time you unlock the sheet it is too late to trigger the table to add a row on its own. But the value the user entered is there so reassigning it triggers the table to add the row. Then you just re-lock and its good to go.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Protect sheet but keep table expandable

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Protect sheet to apply in table extended mood
    By javaidmr in forum Excel General
    Replies: 1
    Last Post: 04-04-2015, 09:20 AM
  2. Replies: 2
    Last Post: 06-28-2014, 07:41 PM
  3. Edit existing marco to unlock protect sheet, remove set criteria and re protect sheet
    By summer2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2013, 09:29 AM
  4. Expandable Table with Multiple Levels
    By amcardwell in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-07-2013, 04:57 PM
  5. VBA Creating Expandable Random Values Based on Values on a different Sheet
    By richter394 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2013, 03:14 PM
  6. Format as Table & Share and Protect Sheet with Tracking
    By naumankhan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2009, 05:52 PM
  7. [SOLVED] How to create an expandable menu on the left of the sheet?
    By pacific in forum Excel General
    Replies: 2
    Last Post: 10-03-2005, 06:05 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