+ Reply to Thread
Results 1 to 6 of 6

How to restrict copy paste in drop down list?

  1. #1
    Registered User
    Join Date
    12-27-2011
    Location
    Pune, India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question How to restrict copy paste in drop down list?

    I am using Excel 2007 and I have a problem in drop down list. My drop down list contains 15 kinds of ticket types. By default, one can't write anything additional in the given drop down list, but he can copy any cell or text and paste in the drop down list. What I actually want is that one can only be able to copy paste the given 15 ticket types and he can't add anything extra. A user has to fill many rows and it would not be easy for him to select manually from drop down for each row, so I want an user to be able to copy any ticket type from those 15 types and paste in the multiple rows simultaneously. But he should not be able to paste or add anything extra for this drop down column.

    In short, I want to allow copy paste but there should be a check in the drop down which does not allow to paste data other than the contents of list.

    I hope I am able to make my problem understand to everyone. Please help with the solution/macros.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to restrict copy paste in drop down list?

    By no means bullet proof but one possible approach:

    Please Login or Register  to view this content.
    To apply the above - right click on Tab you want to use this on - select View Code and paste into resulting window.

    Regards the code:

    Modify c_dvrng reference to reflect the range of cells that contains the Data Validation that should persist at all times.


    Above assumes that multiple cells within range of interest may be updated simultaneously and need not all contain the same value.
    Last edited by DonkeyOte; 12-27-2011 at 08:01 AM. Reason: slight modification

  3. #3
    Registered User
    Join Date
    12-27-2011
    Location
    Pune, India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Smile Re: How to restrict copy paste in drop down list?

    Hey...the code worked perfectly fine...solved my problem.

    Thanks a lot...

  4. #4
    Registered User
    Join Date
    12-27-2011
    Location
    Pune, India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Re: How to restrict copy paste in drop down list?

    I have one more issue...In my data sheet, I have 3 columns (Priority, Modules, Ticket Types) with 3 different drop down lists.
    I want to apply the above validation code for all three columns...The problem is that it's allowing user to copy any cell from a drop down and paste in the other drop down column..so the whole drop down list gets changed after pasting....how can we avoid this?

    In short, I want the user to be able to copy n paste cell within a drop down column only and can not be able to paste data copied from one drop down column to other different drop down column. Please help me in writing validation codes for all 3 columns.

  5. #5
    Registered User
    Join Date
    03-19-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Question Re: How to restrict copy paste in drop down list?

    Hi,

    Can anyone help me to restrict the user paste/paste special from drop down list.

    For convenience, I am attaching herewith the excel. Need to restrict user in A,D,E,F and I (Highlighted in purple color)

    Kindly use the excel "Abhi data"

    Thanks in Advance

    Abhishek
    Attached Files Attached Files

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How to restrict copy paste in drop down list?

    namitabhi,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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