Hi,
I like to maximize efficiency and go really fast when I work with data. I'm pretty good at doing this too, but Excel 2010's keyboard shortcuts to retrieve the paste special values menu prompt is slowing me down. I access this dialog/prompt all the time and I am annoyed at how Microsoft just up and changed the keyboard shortcut's combination code. It's not a big change, but it does disrupt my workflow from time to time.
This lead me to write a macro to execute the new keyboard shortcut myself...
To make this this macro work, one must select a cell, copy its contents (or press Ctrl+C), and then call the macro. It basically just sends the Shift+F10 keyboard combination to Excel and then presses "s" twice in a row.
The macro works perfectly when the previous command is copy. As many of you know, you can not paste special one or more cells that were just cut. Instead, they must be copied and then they can be paste special'd.
As a result, I am hoping to learn of an approach in VBA, to determine if the initial operation was a cut or a copy, and then if it was a copy, then run this code otherwise just paste. Accordingly, I am planning to bind this macro to the "Ctrl+V" keyboard combination. In the end, I would like any cut operations to seamlessly execute while the copy operations bring up the paste special menu every time.
Any ideas?
Thanks,
This guy
I like to maximize efficiency and go really fast when I work with data. I'm pretty good at doing this too, but Excel 2010's keyboard shortcuts to retrieve the paste special values menu prompt is slowing me down. I access this dialog/prompt all the time and I am annoyed at how Microsoft just up and changed the keyboard shortcut's combination code. It's not a big change, but it does disrupt my workflow from time to time.
This lead me to write a macro to execute the new keyboard shortcut myself...
Code:
Sub test()
Application.SendKeys ("+{F10}ss")
End if
To make this this macro work, one must select a cell, copy its contents (or press Ctrl+C), and then call the macro. It basically just sends the Shift+F10 keyboard combination to Excel and then presses "s" twice in a row.
The macro works perfectly when the previous command is copy. As many of you know, you can not paste special one or more cells that were just cut. Instead, they must be copied and then they can be paste special'd.
As a result, I am hoping to learn of an approach in VBA, to determine if the initial operation was a cut or a copy, and then if it was a copy, then run this code otherwise just paste. Accordingly, I am planning to bind this macro to the "Ctrl+V" keyboard combination. In the end, I would like any cut operations to seamlessly execute while the copy operations bring up the paste special menu every time.
Any ideas?
Thanks,
This guy
Last edited: