Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to restore previous content of clipboard
I have a macro that executes several copy and pastes. The problem, If I copy something then run the macro, I have lost the original copied item. ;{
I would like to enter the macro, store the clipboard content and later exit the macro restoring the clipboard. Any ideas? Thanks. I am using excel 2000. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to restore previous content of clipboard
What I do now is to clear the clipboard before exiting macro with this
Application.CutCopyMode = False |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to restore previous content of clipboard
hi Fan924,
'add a reference to the Microsoft Forms 2.0 Object Library Sub Macro1() Dim DataObj As New MSForms.DataObject Dim S As String DataObj.GetFromClipboard S = DataObj.GetText Debug.Print S End Sub isabelle Le 2013-03-05 21:32, Fan924 a écrit : What I do now is to clear the clipboard before exiting macro with this Application.CutCopyMode = False |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to restore previous content of clipboard
isabelle, Thanks
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can I restore previous content before a save? | Excel Discussion (Misc queries) | |||
clipboard - backup and restore | Excel Programming | |||
Transfer clipboard from Task pane clipboard(office?) content to Excel (windows?) clipboard? | Excel Programming | |||
Restore clipboard from Task pane clipboard content? | Excel Programming | |||
Keyboard Macro Just Copies Content of Previous Cell | Excel Discussion (Misc queries) |