Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I use the 'Paste Special Formula' functionality very often and therefore would like to set up a shortcut key. I have recorded a macro but the BIG issue is that then, I am not able to undo if I pasted in the wrong place. I did found a few exemples of 'Undo' VBA macros on the NEt but none would work with 'Paste Special' as the content of the clipboard gets cleared when I launch them (and therefore there is nothing to copy anymore!) Would anyone be kind enough to provide me with the complete code for those two macros (Paste Formula and Undo paste formula)? Many thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Luc,
I use the 'Paste Special Formula' functionality very often and therefore would like to set up a shortcut key. I have recorded a macro but the BIG issue is that then, I am not able to undo if I pasted in the wrong place. I did found a few exemples of 'Undo' VBA macros on the NEt but none would work with 'Paste Special' as the content of the clipboard gets cleared when I launch them (and therefore there is nothing to copy anymore!) Would anyone be kind enough to provide me with the complete code for those two macros (Paste Formula and Undo paste formula)? This clumsy code does the paste formula thing without you loosing your undo: Sub PasteFormula() SendKeys "%es{down}~" End Sub You must attach the macro to a toolbar button for it to work though and it only works on an English Excel. Regards, Jan Karel Pieterse Excel MVP www.jkp-ads.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
VERY clever indeed! Thanks a lot.
-----Original Message----- Hi Luc, I use the 'Paste Special Formula' functionality very often and therefore would like to set up a shortcut key. I have recorded a macro but the BIG issue is that then, I am not able to undo if I pasted in the wrong place. I did found a few exemples of 'Undo' VBA macros on the NEt but none would work with 'Paste Special' as the content of the clipboard gets cleared when I launch them (and therefore there is nothing to copy anymore!) Would anyone be kind enough to provide me with the complete code for those two macros (Paste Formula and Undo paste formula)? This clumsy code does the paste formula thing without you loosing your undo: Sub PasteFormula() SendKeys "%es{down}~" End Sub You must attach the macro to a toolbar button for it to work though and it only works on an English Excel. Regards, Jan Karel Pieterse Excel MVP www.jkp-ads.com . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
1 Create a macro to Copy & paste certain data to another sheet | Excel Discussion (Misc queries) | |||
how to create a copy/paste special/transpose macro? | Excel Discussion (Misc queries) | |||
How to create a macro which performs a copy-and-paste task every 5mins after data is refreshed from web page? | Excel Worksheet Functions | |||
How do I copy and paste a formula I create to subtotals only? | Excel Worksheet Functions | |||
I need formula help or create a macro to copy and paste value only | Excel Discussion (Misc queries) |