如何在Excel中单击将单元格自动复制到剪贴板?

网友投稿 279 2023-12-11

如何在Excel中单击将单元格自动复制到剪贴板?

通常,将单元格复制到剪贴板时,需要先选择该单元格,然后按 按Ctrl + C 复制它的密钥。 如何通过单击单元格而不按热键来自动复制它? 本文中的方法可以为您提供帮助。

通过单击VBA代码自动将单元格复制到剪贴板

通过单击VBA代码自动将单元格复制到剪贴板
惊人的! 在 Excel 中使用高效的选项卡,如 Chrome、Firefox 和 Safari! 每天节省50%的时间,并减少数千次鼠标单击!

下面的VBA代码可以通过在Excel中单击将单元格复制到剪贴板。 请执行以下操作。

如何在Excel中单击将单元格自动复制到剪贴板?

1.打开要使单元格自动复制到剪贴板的工作表,右键单击工作表选项卡,然后选择 查看代码 从右键单击菜单中。 看截图:

2.在开幕 Microsoft Visual Basic应用程序 窗口,请将VBA代码复制到“代码”窗口中。

VBA代码:通过单击将单元格自动复制到剪贴板

Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Range("A1:A9")) Is Nothing Then Target.Copy End If End Sub
Copy
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. Related articles: 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? Best Office Productivity Tools Transform Hours into Minutes with Kutools for Excel! Ready to supercharge your Excel tasks? Harness the power of Kutools for Excel - your ultimate time-saving tool. Streamline intricate tasks and glide through your data like a pro. Experience Excel at lightning speed! Why You Need Kutools for Excel 🛠️ Over 300 Powerful Features: Kutools is packed with more than 300 advanced features, simplifying your work in over 1500 scenarios. 📈 Superior Data Processing: Merge cells, remove duplicates, and perform advanced data conversions – all without breaking a sweat! ⏱️ Efficient Batch Operations: Why put in extra effort when you can work smart? Import, export, combine, and tweak data in bulk with ease. 📊 Customizable Charts and Reports: Access a broad variety of additional charts and generate insightful reports that tell a story. 🗄️ Powerful Navigation Pane: Gain an advantage with the robust Column Manager, Worksheet Manager, and Custom Favorites. 📝 Seven Types of Drop-down Lists: Make data entry a breeze with drop-down lists of various features and types. 🎓 User-Friendly: A breeze for beginners and a powerful tool for experts. Download Now and Soar Through Time with Excel! Read More... Free Download... Purchase... Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project. Open and create multiple documents in new tabs of the same window, rather than in new windows. Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day! Read More... Free Download... Purchase...

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:如何在Excel中自动为行/列交替着色?
下一篇:如果单元格中包含Excel中的内容,如何自动创建边框?
相关文章