+ Reply to Thread
Results 1 to 5 of 5

How to allow users to copy protected sheet?

  1. #1
    Forum Contributor
    Join Date
    01-20-2011
    Location
    liverpool
    MS-Off Ver
    Excel 2016
    Posts
    198

    How to allow users to copy protected sheet?

    Hello,
    I nesed you advice on enabling users to copy values in protected sheet.
    I guess it is possible to insert special code that will make possible users to copy values from protected sheet and paste then to another empty one.
    Thanks!

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

    Re: How to allow users to copy protected sheet?

    When you execute Protect on a worksheet, the default is to allow users to select and copy both locked and unlocked cells, so you don't need special code to allow it. There are options to prevent selection and copying of cells, but the code below explicitly enforces the default. Replace ActiveSheet with the specific sheet descriptor as needed:

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    01-20-2011
    Location
    liverpool
    MS-Off Ver
    Excel 2016
    Posts
    198

    Re: How to allow users to copy protected sheet?

    Thanks buddy.
    I added the 2 lines in the code and it allowed to select. I do not know how I restricted selection.
    I did a try to another sheet, just protected a column agains selection and change and then tried to select arange rgar includes that column-no problem.

    I have aquestion when I added suggested lines to the macro it change the file in way that it allows user to select a cell without possibility to change. If I want the formula in the cell to be invisible how I can do it?

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

    Re: How to allow users to copy protected sheet?

    Not sure precisely what you mean by "invisible". Do you mean that you want the user to be able to see the value in the cell, but not the formula that produces it? You would go to View, then untick Formula Bar. The code to do this is

    Please Login or Register  to view this content.
    Note that this setting is for the entire application and will affect the views of all open files.

    However, also note that if you allow the user to select it, they can copy it, and when they paste it they will be pasting the formula. So you can't allow copying while at the same time prevent them from finding out what the formula is.

  5. #5
    Forum Contributor
    Join Date
    01-20-2011
    Location
    liverpool
    MS-Off Ver
    Excel 2016
    Posts
    198

    Re: How to allow users to copy protected sheet?

    Hello,
    the problem with enabling users to copy from protected sheet is resolved. Now it appears that they do want to be able to paste at the same sheet.
    For example one rowfrom the sheet contains 15 cells. there are many cases where 12 out of those 15 cells have the same value. So users say that for them it will be much easier to copy paste the common values in the next row.
    How I can allow them to copy-paste a raw in protected sheet?

+ 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: 4
    Last Post: 09-16-2013, 04:23 PM
  2. I want to allow users to copy a chart in my protected document
    By Triscia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2013, 03:47 PM
  3. [SOLVED] Copy protected sheet to a NEW workbook that is not protected
    By lsteinbach in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-14-2012, 11:50 AM
  4. Replies: 0
    Last Post: 07-06-2006, 09:40 AM
  5. [SOLVED] On protected Excel sheet users be able to group/ungroup rows/colum
    By Oryssia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2006, 07:55 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