+ Reply to Thread
Results 1 to 8 of 8

Copy or paste on double click?

  1. #1
    Forum Contributor
    Join Date
    01-29-2019
    Location
    Drenthe, Netherlands
    MS-Off Ver
    Dutch Office 2019
    Posts
    291

    Copy or paste on double click?

    Is the a way to copy or paste on double click a cell in a sheet?

    If cell = "" .paste (value only!)
    If cell <> "" .copy value

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Copy or paste on double click?

    Right Click On Your Sheet Name At the Bottom Of Excel and Select View Code
    Paste this code in the module that opens and close it.


    I have shown you two options.
    DoubleClick will copy / paste a single cell

    Right Click will copy / paste the selected range

    Please Login or Register  to view this content.
    Attached Files Attached Files
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    01-29-2019
    Location
    Drenthe, Netherlands
    MS-Off Ver
    Dutch Office 2019
    Posts
    291

    Re: Copy or paste on double click?

    It does not work. I get a error on "Selection.PasteSpecial xlPasteValues"

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Copy or paste on double click?

    Try this spreadsheet.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    01-29-2019
    Location
    Drenthe, Netherlands
    MS-Off Ver
    Dutch Office 2019
    Posts
    291

    Re: Copy or paste on double click?

    I tryd. But olso a error with "Selection.PasteSpecial xlPasteValues"

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Copy or paste on double click?

    The Macro works perfectly here. Are you downloading from Post #4?

  7. #7
    Forum Contributor
    Join Date
    01-29-2019
    Location
    Drenthe, Netherlands
    MS-Off Ver
    Dutch Office 2019
    Posts
    291

    Re: Copy or paste on double click?

    Yep. The Worksheet_BeforeRightClick works fine.
    The Worksheet_BeforeDoubleClick is not working because of a error in Selection.PasteSpecial xlPasteValues

  8. #8
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Copy or paste on double click?

    Try this code instead:

    Please Login or Register  to view this content.

+ 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] VBA copy on click and paste without double quotes (beginning and end)
    By kingofcamden in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-11-2019, 09:05 AM
  2. Copy and double click and paste in a specific cell
    By sonican in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2016, 03:24 PM
  3. Double click to copy cells and paste elsewhere
    By porko5079 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2015, 04:50 AM
  4. [SOLVED] VBA for Double Click Copy Paste
    By Kehoth01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2014, 02:34 PM
  5. [SOLVED] Double click VBA to copy & paste to new list
    By OTHERLARISSA in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-28-2013, 09:37 AM
  6. [SOLVED] Double click to copy and paste value to first available row.
    By JO505 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2013, 05:37 PM
  7. [SOLVED] How to copy fr AU:AY & paste to O:S after double click at B in same row
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-14-2012, 03:34 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