+ Reply to Thread
Results 1 to 5 of 5

Double Click event - copy

  1. #1
    Registered User
    Join Date
    08-04-2014
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    58

    Double Click event - copy

    Hello,

    I got a list of items in P10:P20.

    I want to be able to doubleclick a cell in P10:P20 and its contents should be copied and pasted
    in cell G9.

    The next time I double click on a cell in P10:P20 I want it to skip to the next empty cell in the G column.

    I found a couple of different soloutions but none that skips to the next empty row.

    Can anyone help me get started?

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Double Click event - copy

    use the following to identify the next empty cell in column G
    Please Login or Register  to view this content.
    so your code could be
    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Double Click event - copy

    Check the attached file..

    Please Login or Register  to view this content.
    Code need to be placed in ThsiWorkbook - Module

    EF1050983.xlsm
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  4. #4
    Registered User
    Join Date
    08-04-2014
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    58

    Re: Double Click event - copy

    Thank you Debraj Roy! It worked perfect!

    Is it possible to make the macro work if the user copies the entire worksheet within the same workbook?
    Basicly there are som sheets where I dont want the macro to work, but I want it to work on this specific sheet and for the user to be able to copy the specific sheet.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Double Click event - copy

    Hi cajand,

    Put my code behind an individual sheet instead of the Workbook. See the attached. It is very similar to Deberaj's but I like to use Cell(row,col) format better.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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] Before double click event with if statements (Double clicking blank cell stops bdc firing)
    By camdenpars in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-27-2014, 09:03 AM
  2. Click v double click event code
    By Greg J in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2014, 04:08 AM
  3. Double Click Event Help
    By mannymg in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-13-2014, 02:56 PM
  4. Double click event
    By baz0912 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2008, 05:56 PM
  5. [SOLVED] userform label double-click goes to click event
    By John Paul Fullerton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2006, 01:00 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