+ Reply to Thread
Results 1 to 11 of 11

Double-click the cell to get into Editing mode, then Select All and Copy

  1. #1
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Double-click the cell to get into Editing mode, then Select All and Copy

    Hi,

    Is it possible to copy the cell contents on double click (Editing mode) and select all the contents and copy to clipboard by VBA
    Last edited by Barieq; 10-03-2023 at 05:08 AM.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Double-click the cell to get into Editing mode, then Select All and Copy

    Hi there,

    The following code will copy a single cell (value and formatting) to the clipboard. It should be entered in the "ThisWorkbook" VBA CodeModule.

    Please Login or Register  to view this content.

    Hope this helps.

    Regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Double-click the cell to get into Editing mode, then Select All and Copy

    Sorry, may be I have not mentioned you clearly.

    I need to select the cell contents (As we do it on Edit Mode F2) and select all the contents and copy later I need to paste it to some other application.

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,915

    Re: Double-click the cell to get into Editing mode, then Select All and Copy

    You can use a macro like this:

    Please Login or Register  to view this content.
    Either called from a double-click event like Greg showed or run manually.
    Rory

  5. #5
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Double-click the cell to get into Editing mode, then Select All and Copy

    @rorya,

    Thank you, this is exactly what I wanted. How can I amend this code to sheet double click event, I tried but no result.

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,915

    Re: Double-click the cell to get into Editing mode, then Select All and Copy

    Is it just for one particular sheet?

  7. #7
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Double-click the cell to get into Editing mode, then Select All and Copy

    No, I need to apply this event to multiple sheets from range F7:F & lastrow.

  8. #8
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,915

    Re: Double-click the cell to get into Editing mode, then Select All and Copy

    If they are all in the same workbook, then you can use the event Greg suggested:

    Please Login or Register  to view this content.
    pasted into the ThisWorkbook module of that workbook.

  9. #9
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Double-click the cell to get into Editing mode, then Select All and Copy

    Quote Originally Posted by rorya View Post
    If they are all in the same workbook, then you can use the event Greg suggested:
    Thank You, Solved..

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,954

    Re: Double-click the cell to get into Editing mode, then Select All and Copy

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  11. #11
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Double-click the cell to get into Editing mode, then Select All and Copy

    @rorya

    Acknowledgement appreciated - many thanks!

    Best regards,

    Greg M

+ 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. Disable Typing/Paste/editing & Double click on locked cell without notification alert
    By abhinavbinkar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2018, 05:14 AM
  2. [SOLVED] Copy cell value on double click
    By wellous in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2015, 06:32 AM
  3. Double click cell - copy data to new sheet - create a list from double clicking
    By kakky in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-04-2015, 11:14 PM
  4. Double Click Excel Window Title Bar Duirng Full Screen Mode
    By Badrul Hisham in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2015, 11:50 AM
  5. 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
  6. 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
  7. Unable to double-click cell for editing
    By roadstersound in forum Excel General
    Replies: 4
    Last Post: 06-19-2005, 10:09 AM

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