+ Reply to Thread
Results 1 to 13 of 13

Copy / paste contents of specific cell on double-click

  1. #1
    Registered User
    Join Date
    05-21-2015
    Location
    eire
    MS-Off Ver
    current
    Posts
    8

    Copy / paste contents of specific cell on double-click

    Greetings EXCELlenters,

    Absolute greenhorn here.

    I want to be able to:
    double-click on a cell to...
    copy the entire content of a cell in the same line, but always the SAME (known) column, to the cell in which I double-clicked.

    EXAMPLEs:
    --->> double click on C3, to copy the entire content (color and text content) of Q3 to C3
    --->> double click on E5, to copy the entire content (color and text content) of Q5 to E5
    --->> double click on B22, to copy the entire content (color and text content) of Q22 to B22

    I wish this 'macro'(?) to be retained with my document, and NOT part of my EXCEL configuration.

    Many thanks, con ger

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Copy / paste contents of specific cell on double-click

    Just right click a tab name, View Code, and paste this there:

    Please Login or Register  to view this content.
    Last edited by daffodil11; 05-21-2015 at 11:09 AM. Reason: I OOPSED HARD.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    05-21-2015
    Location
    eire
    MS-Off Ver
    current
    Posts
    8

    Re: Copy / paste contents of specific cell on double-click

    Thanks Daff

    The greenhorn strikes again.... tab name... can you explain pls.

    -g-

  4. #4
    Registered User
    Join Date
    05-21-2015
    Location
    eire
    MS-Off Ver
    current
    Posts
    8

    Re: Copy / paste contents of specific cell on double-click

    Cool Daff... managed to get the tab name bit... and it works... mostly... the cell content (text) is copied and pasted... but the color (of the cell to be copied) is not, nor is the color of the text copied... else, just what I want!

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Copy / paste contents of specific cell on double-click

    The worksheet name. There are little tabs at the bottom of the screen that say things like "Sheet1" "Sheet2" etc.




    Alternatively, you can hit Alt+F11 to go to VB Editor and then double click the worksheet name you want to apply the code to from the Project Explorer on the left hand side.

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Copy / paste contents of specific cell on double-click

    Oh okay. You'll need to add some stuff then.

    Please Login or Register  to view this content.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Copy / paste contents of specific cell on double-click

    It might be better to use a copy/paste, to capture all the formatting in one line of code.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  8. #8
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Copy / paste contents of specific cell on double-click

    Pshhh. Only if you want to be really efficient. And more correct.

    Thanks Jeff.

  9. #9
    Registered User
    Join Date
    05-21-2015
    Location
    eire
    MS-Off Ver
    current
    Posts
    8

    Re: Copy / paste contents of specific cell on double-click

    Daff.... eternally grateful... large numbers of feedback sheets to be recorded... was mighty cheesed at the C&P effort... no... just a (double)click... and I am done.... thanks, g.

    PS.... Daffodil.... national flower.... of Wales? -g-

  10. #10
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Copy / paste contents of specific cell on double-click

    =D

    Actually, it's the middle name of a character from one of my favorite novels.

    http://en.wikipedia.org/wiki/Slapstick_(novel)

  11. #11
    Registered User
    Join Date
    05-21-2015
    Location
    eire
    MS-Off Ver
    current
    Posts
    8

    Re: Copy / paste contents of specific cell on double-click

    Now... the next requirment.

    Limit this function (2-clich / replace) to a specific range of lines.... I.E. it works in lines 7 to 85... but not in any other line?

    ;-))

    -g-

  12. #12
    Registered User
    Join Date
    05-21-2015
    Location
    eire
    MS-Off Ver
    current
    Posts
    8

    Re: Copy / paste contents of specific cell on double-click

    Quote Originally Posted by daffodil11 View Post
    =D

    Actually, it's the middle name of a character from one of my favorite novels.

    http://en.wikipedia.org/wiki/Slapstick_(novel)
    Aha..... read the wiki.... now on my amazon wish list... ta, g.

  13. #13
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Copy / paste contents of specific cell on double-click

    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 for Double Click Copy Paste
    By Kehoth01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2014, 02:34 PM
  2. double click cell , copy paste to IE , run ....for long url more than 350 characters
    By raj soni in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2014, 09:48 AM
  3. Need simple way to copy a cell's contents upon double-click.
    By Ruark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2013, 12:18 AM
  4. Double-Click Function And Copy-Paste Value In Cell B2
    By FLani in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-25-2013, 02:46 AM
  5. [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

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