+ Reply to Thread
Results 1 to 9 of 9

Double click cell - copy data to new sheet - create a list from double clicking

  1. #1
    Registered User
    Join Date
    05-03-2015
    Location
    new zealand
    MS-Off Ver
    2013
    Posts
    2

    Double click cell - copy data to new sheet - create a list from double clicking

    Hi,

    I have hunted the forums for a while now trying to find a solution for the problem I am stuck with.

    I wish to create a Code enabling me to Double click a cell, in turn it then copies the cell to a new sheet. I then wish to go back to the first sheet and double click the next item to copy across, pasting the new item underneath the first copied cell, continuing to do this multiple times to create a list

    Currently this Code over writes the cell on the new sheet (D1)
    how can I change the range to be row D recurring?

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    If Not Intersect(Target, Range("A1:A15")) Is Nothing Then
    Cancel = True
    Target.Copy
    Sheets("SHEET1").Range("D1").PasteSpecial Paste:=xlPasteValues
    Application.CutCopyMode = False
    Sheets("SHEET1").Select
    End If
    End Sub

    cheers,
    Kak
    Last edited by kakky; 05-04-2015 at 12:21 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Double click cell - copy data to new sheet - create a list from double clicking

    Hello Kakky,

    This slight modification to your code should do the trick:-
    Please Login or Register  to view this content.
    It copies from sheet 1 to sheet 2.
    The code assumes that there is a heading in cell D1, Sheet2.

    Cheerio,
    vcoolio.

  3. #3
    Registered User
    Join Date
    04-05-2007
    Location
    Sydney Australia
    Posts
    48

    Re: Double click cell - copy data to new sheet - create a list from double clicking

    Hi

    This should paste into the next empty cell column D


    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Double click cell - copy data to new sheet - create a list from double clicking

    Please use code tags when posting. Try:

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Double click cell - copy data to new sheet - create a list from double clicking

    Greetings Maxwell and John,

    Doesn't the OP want the result on a second sheet?

    I wish to create a Code enabling me to Double click a cell, in turn it then copies the cell to a new sheet.
    I suppose we all read and understand things differently!

    Cheers Gentlemen,
    vcoolio.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Double click cell - copy data to new sheet - create a list from double clicking

    @ vcoolio. The OP complains about overwriting D1 on the new sheet and then gives as destination for the new sheet as Sheets("SHEET1").Range("D1").PasteSpecial Paste:=xlPasteValues. That's how I read it?

  7. #7
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Double click cell - copy data to new sheet - create a list from double clicking

    Oh well, John. At least the OP now has a couple of options!

    Over to Kakky.

    Cheers.

  8. #8
    Registered User
    Join Date
    05-03-2015
    Location
    new zealand
    MS-Off Ver
    2013
    Posts
    2

    Re: Double click cell - copy data to new sheet - create a list from double clicking

    Cheers guys, maybe my explaining wasn't the best Vcoolio was what I was chasing so thanks for that

  9. #9
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Double click cell - copy data to new sheet - create a list from double clicking

    Hello Kakky,

    Glad that I could help.

    Cheerio,
    vcoolio.

+ 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. Changing cell properties with double click, then revert with another double click
    By mweber2525 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-01-2014, 01:40 PM
  3. [SOLVED] Copy data to another sheet a double click option vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2014, 06:49 PM
  4. Copy double-clicked cell to next empty row in different sheet with each double-click
    By erhathaway in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-25-2013, 12:06 AM
  5. Create macro upon double click cell display filter in new sheet
    By kamalhilmi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-14-2012, 07:40 AM

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