How to automatically copy a cell to clipboard with single click in Excel?
Normally, when copying a cell to clipboard, you need to select the cell firstly, and then press the Ctrl + C key to copy it. How to automatically copy a cell by just clicking on it without pressing the hotkeys? Method in this article can help you.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
The following VBA code can help you copy a cell to the clipboard by just clicking it in Excel. Please do as follows.
1. Open the worksheet you want to make cells copied to clipboard automatically, right click the sheet tab and then select View Code from the right-clicking menu. See screenshot:
2. In the opening Microsoft Visual Basic for Applications window, please copy the VBA code into the Code window.
VBA code: Automatically copy a cell to clipboard by clicking
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Range("A1:A9")) Is Nothing Then Target.Copy End If End Sub
Note: In the code, A1:A9 is the cells you will copy to clipboard automatically. Please change it based on your need.
3. Press the Alt + Q keys to close the Microsoft Visual Basic for Applications window.
When clicking on any cell of range A1:A9, the cell will be copied automatically to the clipboard as below screenshot shown.
And then, you can select a destination cell and press Enter key to paste the copied contents.
- How to copy cells data with row height and column width in Excel?
- How to auto copy and paste cell in current sheet or from one sheet to another in Excel?
- How to disable cut, copy and paste functions in Excel?
- How to copy only borders of selected range in Excel?
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 1 months agoits working great. thanks
To post as a guest, your comment is unpublished.· 1 years agoMuito obrigado!
Trabalhei por alguns anos no ctrl C crtl V de uma mesma planilha de dados para o sistema que eu uso no trabalho... essa simples ação de já selecionar copiando me tirou um "fardo" enorme das atividades diárias!