+ Reply to Thread
Results 1 to 10 of 10

Locking Excel Cells After Data Has Posted

  1. #1
    Registered User
    Join Date
    06-26-2020
    Location
    West Palm Beach, USA
    MS-Off Ver
    Excel 365 ProPlus
    Posts
    4

    Locking Excel Cells After Data Has Posted

    Hi All,

    New to the group. I am something of an Excel expert, but I've run into an issue I cannot resolve. I am hopeful I can find a solution to a problem I am having currently.

    In prior versions of Excel, I used to be able to unlock a cell (under the Protection tab in the cell format window) in Excel, protect the worksheet, and then the user could paste data into the cell that would lock the cell when all the formatting copied over.

    Unfortunately, this ability has been lost in Excel 365 ProPlus (at least, I can't get it to work again). Do you have any suggestions on how this can be regained? We utilize this function to track payments from a source system while preventing the user from adjusting the numbers.

    Stretch055

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Locking Excel Cells After Data Has Posted

    Did the cell lock itself using a macro that was run when the change event fired?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Locking Excel Cells After Data Has Posted

    Quote Originally Posted by Stretch055 View Post
    ...In prior versions of Excel, I used to be able to unlock a cell (under the Protection tab in the cell format window) in Excel, protect the worksheet, and then the user could paste data into the cell that would lock the cell when all the formatting copied over....
    I have been using excel back to ver 97, and have never seen a setting to automate that functionality, are you sure there was not some code running in the back ground?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    06-26-2020
    Location
    West Palm Beach, USA
    MS-Off Ver
    Excel 365 ProPlus
    Posts
    4

    Re: Locking Excel Cells After Data Has Posted

    No, there was no macro or program running in the background. It was an older version of Excel; I tested the functionality of this myself before distributing to the end users.

    Is there a macro I can run automatically to achieve this? How would I write the macro? My macro experience is next to zero.

  5. #5
    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,882

    Re: Locking Excel Cells After Data Has Posted

    Which older version? I've been using Excel for nearly 30 years and this has not existed as a native setting in any version I have used. Maybe you had an add-in installed?

    You'd need VBA to mimic the behaviour. Shall I move the thread to that section?
    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.

  6. #6
    Registered User
    Join Date
    06-26-2020
    Location
    West Palm Beach, USA
    MS-Off Ver
    Excel 365 ProPlus
    Posts
    4

    Re: Locking Excel Cells After Data Has Posted

    Yes, please move this to the VBA thread.

  7. #7
    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,882

    Re: Locking Excel Cells After Data Has Posted

    Done. Out of interest, which version had this special functionality to which you are referring?

  8. #8
    Registered User
    Join Date
    06-26-2020
    Location
    West Palm Beach, USA
    MS-Off Ver
    Excel 365 ProPlus
    Posts
    4

    Re: Locking Excel Cells After Data Has Posted

    Excel 2003.

    The steps were:
    1) Unlock a cell
    2) Protect the worksheet
    3) Paste data from another workbook into the protected sheet. This then set the cell back to locked status and prevented further editing.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Locking Excel Cells After Data Has Posted

    I used 2003 for years, and never saw that functionality. I created systems, protected them and then distributed them to users, so Im sure I would have seen that option, if it were native.

  10. #10
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Locking Excel Cells After Data Has Posted

    If I'm not wrong, in Excel 2003 and before (97 or XP) will copy all attribute from original cell include lock/unlock.
    And after Excel 2007 and later will exclude lock/unlock attribute while copy/paste.

    Regards.


    Note:
    In Excel 2007 and later, will copy lock/unlock attribute if protect is off.
    If protect is on (sheet is protected) will not copy lock/unlock attribute.

    You may need VBA to slove this problem.
    Last edited by menem; 06-30-2020 at 04:55 AM. Reason: Add more info

+ 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. Replies: 1
    Last Post: 07-12-2019, 10:35 PM
  2. locking specific cells ends up locking the whole sheet and I dont know why
    By jitterbug888 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-10-2019, 12:14 AM
  3. Locking specific cells eventually changing to locking all cells
    By davidingilbert in forum Excel General
    Replies: 1
    Last Post: 03-19-2013, 06:50 PM
  4. Help with macro, automatical locking cells when excel is closed but only locking 1 sh
    By snoopy1461 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2011, 11:29 AM
  5. Entering in data in specific cells using range protect or locking the cells
    By howard101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2008, 11:05 AM
  6. Replies: 1
    Last Post: 07-21-2006, 11:05 AM
  7. posted data in a range of cells can't change after three days
    By andycapp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2006, 09:30 AM

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