+ Reply to Thread
Results 1 to 3 of 3

Prevent pasting in cells

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Question Prevent pasting in cells

    Hi
    I've got a column of cells with validation.
    If a user instead of typing values into the cells, copy/paste from another cell, the original validation settings are overwritten.
    Is there any way to prevent the user from pasting data to validated cells or any cell and has to enter values by typing through keyboard, otherwise validation is not worth much.
    Regards,

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Prevent pasting in cells

    Maybe this...

    With
    B3: (containing the Data Validation cell)

    • Set Cell B3 to UN-locked
    • Set Cell C3 to LOCKED
    • Select cells B3:C3
    • Home.Format.Format_Cells…Alignment_tab
    • Check: Merge cells
    Note: I generally avoid merged cells, but in this case they are helpful.

    Last...Protect the worksheet.

    The end result:
    Users will be able to select items from the dropdown list
    but will not be able to delete the contents or paste
    data into the cells.

    Note: There are ways around that meager security, but
    at least the users won't inadvertently ruin your sheet.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    08-05-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Prevent pasting in cells

    sorry Ron,
    It's not working, if i copy paste CTRL+C & CTRL+V, the value gates copied or event if i insert a cell reference after =sign, the values gets entered without restriction of upper limit. I am not using drop down list but enter the numerical values which has upper/Lower limits to be entered.

+ 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. prevent pasting wrong values over validated cells
    By giligili in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2013, 07:31 AM
  2. need code to prevent pasting merged cells
    By Kevin_N_PA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2013, 02:32 PM
  3. Prevent pasting over validation
    By BuzzT in forum Excel General
    Replies: 1
    Last Post: 02-07-2011, 04:51 PM
  4. Replies: 4
    Last Post: 03-02-2005, 11:16 PM
  5. [SOLVED] Prevent Pasting
    By Paige in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-16-2005, 03:35 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