+ Reply to Thread
Results 1 to 5 of 5

Disable Paste In Certain Range of Cells

  1. #1
    Registered User
    Join Date
    03-21-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    90

    Disable Paste In Certain Range of Cells

    My spread sheet is setup to populate certain cells based on what the user selects. I want to disable the users ability to paste and anything from another spreadsheet into this range of cells. Also, I want to disable the users ability to insert rows in this range of cells. Is there a way to accomplish this without the user getting an error message when they make their selection to auto populate this certain range?

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Disable Paste In Certain Range of Cells

    How does the auto populate work - formula or VBA?
    Is it one contiguous range?
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    03-21-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    90

    Re: Disable Paste In Certain Range of Cells

    It's VBA. That populates Range c26:O31

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Disable Paste In Certain Range of Cells

    When they are making their selection to auto-populate, are they physically selecting cells In that range?

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Disable Paste In Certain Range of Cells

    Apply sheet protection to protect the range from users, use VBA to lift protection when VBA puts values in those cells, re-apply by VBA
    - do you need the code?

    Try sheet protection like this:
    Unlock all cells
    Lock only cells c26:O31
    Allow user to do everything apart from inserting and deleting rows and columns
    - can get round that if you need with a button and VBA if users are allowed to delete other rows

    Protect2.jpg

+ 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. [SOLVED] Disable copy/cut/paste function for unlocked cells in a predominantly locked spreasheet
    By Tommaso Nardin in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-11-2017, 04:03 AM
  2. disable paste option for selected range
    By Liju144 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2016, 05:11 AM
  3. How to Disable Paste into Certain Cells (using VBA)
    By kingpnp in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-04-2014, 10:52 PM
  4. .
    By kingpnp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2014, 02:35 PM
  5. Replies: 0
    Last Post: 08-15-2012, 08:13 AM
  6. Disable cut and paste for protected cells
    By Lyndon in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-17-2012, 08:41 AM
  7. Enable/disable copy paste (disable part not working)
    By timtim89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2012, 07:23 PM

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