+ Reply to Thread
Results 1 to 4 of 4

Edit locked cells but not copy them

  1. #1
    Registered User
    Join Date
    02-23-2024
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    20

    Edit locked cells but not copy them

    I have an excel sheet that is password protected. Certain cells also have a password "Allow Edit Ranges". On those cells, I want what is typed in to remain invisible. Once i click out of the cell it does remain invisible. However, I can copy the cell and past it else where and now the contents of that cell are visible. The value entered in this cell is sensitive information. Is there a work around?

    Operations
    I create the workbook. I add a Allow Edit Range Password to cell A3
    I protect the worksheet with a password that only I know
    User selects cell A3, enters the password, and now the cell is unlocked
    User types out their sensitive information
    The workbook is saved and closed
    Cell A1 returns a value based on their information entered in cell A3
    Cell A1 is locked and not editable.
    A user can now open the workbook and copy the cell in A3 and paste it elsewhere and see the value. I wont to stop this part from being able to happen.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,977

    Re: Edit locked cells but not copy them

    If you can select a cell, you can copy it, even if you can't otherwise edit it.

    It is possible to do this with some VBA. To make it apply only to certain cells would be a bit more involved. Would you consider a VBA solution?

    If you are going to use VBA, then my preferred alternative would be to create a user interface (UserForm) to populate the cells, rather than allowing the user to directly access the worksheet. A design for that would be very specific to what you're doing, not enough info in your post to actually do it.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-23-2024
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Edit locked cells but not copy them

    I am trying to find a workaround using excel to use the editable cell as a signature code. Cell A1 reads cell A3 and returns the users first and last name in script. I have tried a VBA, & it "worked". It eliminated the use of "Ctrl+C" but it slows down most of the computers drastically. Some of our uses use "Ctrl+C", others right click and copy, and some even use the Home Ribbon and hit copy. We have multiple shared computers and need a way to validate who is actually signing.
    Last edited by 6StringJazzer; 07-08-2024 at 10:42 PM. Reason: no need to quote entire posts to reply directly

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,977

    Re: Edit locked cells but not copy them

    Here is some sample code I got elsewhere. I have not tested it myself yet. It could be modified to be in effect only for certain cells. It covers the key shortcut as well as menu clicks.

    I can't guess at why your code slowed things down without seeing the code.

    Please Login or Register  to view this content.

+ 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. Edit a locked sheet that is locked due to date expiration
    By gjjh25 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2022, 11:23 AM
  2. Replies: 4
    Last Post: 09-25-2020, 08:59 AM
  3. [SOLVED] creating a macro to edit locked cells
    By pman354 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-11-2015, 11:23 AM
  4. Can i avoid Locked Cells Using this Code getting Updated How can i edit this code
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-01-2014, 03:27 AM
  5. Copy and paste locked cells, and have pasted cells retain LOCKED status.
    By stratloveslenny in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2014, 03:05 PM
  6. Replies: 3
    Last Post: 04-12-2014, 04:47 AM
  7. edit comments in locked cells
    By bmnjna2019 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-19-2006, 07:25 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