0

So I'm floored that there is not a hotkey to do this. I went on Microsoft's site to check the Excel hotkeys and there isn't one.

All I want to do is have a hotkey that copies the contents of a cell that I have currently selected. I don't want to use my mouse at all. Is this possible? The only solution that Microsoft provides is:

  1. Hit F2 to edit the contents of the selected cell
  2. Select text with Shift+Arrow (Not Ctrl+A mind you, this does not work in a cell)
  3. Hit Ctrl+X or Ctrl+C to copy the value.

Microsoft Description

Why is there not hotkey for this? Can one be made? It would make my life a lot easier.

Community
  • 1
  • 1
ToastyMallows
  • 4,203
  • 5
  • 43
  • 52

1 Answers1

2

You will have to assign the macro to your own hotkey but this will add the ActiveCell text to the clipboard. Add a reference to the Microsoft Forms 2.0 Object Library

Sub hotKeyCopy()
Dim DataObj As New MSForms.DataObject
Dim copyText As String
copyText = ActiveCell.Text
DataObj.SetText copyText
DataObj.PutInClipboard
End Sub
datatoo
  • 2,019
  • 2
  • 21
  • 28
  • Nice! Thank you so much. For anyone that is curious on how to add a reference to the Microsoft Forms 2.0 Object Library, in the Microsoft VB for Applications window when making the macro, go to Tools -> References then find Microsoft Forms 2.0 Object Library in the list. If its not there, click Browse... and go to c:\windows\system32\FM20.DLL. – ToastyMallows Jun 08 '12 at 13:20
  • Also, if you can't find it on the list, adding a form to a workbook will automatically set the reference, and you can then remove the form – datatoo Jun 08 '12 at 15:33