+ Reply to Thread
Results 1 to 3 of 3

Prevent pasting over dropdowns

  1. #1
    Registered User
    Join Date
    08-20-2020
    Location
    Apeldoorn, The Netherlands
    MS-Off Ver
    MS Office 365
    Posts
    22

    Prevent pasting over dropdowns

    Hi all,

    I have an Excel sheet in which some columns have dropdowns and others are open text fields. I want to prevent the user from pasting values over the dropdowns. For the open text fields, it is allowed to paste. The different column types are not adjacent.

    I've tried VBA, but that's not working (I'm not a VBA Expert, so it's probably me).

    See the attachment for the example.

    I hope someone can help out.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-12-2022
    Location
    Argentina
    MS-Off Ver
    2016
    Posts
    38

    Re: Prevent pasting over dropdowns

    hi, try this code.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-20-2020
    Location
    Apeldoorn, The Netherlands
    MS-Off Ver
    MS Office 365
    Posts
    22

    Re: Prevent pasting over dropdowns

    Thanks for you help.

    I problem with this code is that I cannot copy anything anymore. In some columns, copying is allowed and in some not (see row 2). Would that be possible too?

+ 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] Macro to prevent pasting
    By Mahmoudelnemr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2019, 06:18 PM
  2. Vb code to prevent pasting into worksheet
    By bgane in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2018, 10:03 AM
  3. Prevent pasting if another cell on that row is empty
    By ld2x07 in forum Excel General
    Replies: 2
    Last Post: 10-21-2014, 03:59 AM
  4. Prevent pasting over data validation
    By antho27 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2014, 02:54 PM
  5. Prevent pasting in cells
    By yatin1964 in forum Excel General
    Replies: 2
    Last Post: 10-23-2013, 03:05 AM
  6. Prevent pasting over validation
    By BuzzT in forum Excel General
    Replies: 1
    Last Post: 02-07-2011, 04:51 PM
  7. Prevent Pasting
    By Paige in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-16-2005, 03:35 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