Can we control Office Clipboard programmatically?
I am not able to find much on this. I am using PowerPoint 2007 on Windows
Vista.
Even checking whether Office clipboard is active or not will suffice for my
use case.
My Scenario - I have my own implementation of IDataObject::GetData function.
When I do a copy, my function gets a call from the Office Clipboard.
When i do a paste, my function gets a call from the application which is
trying to paste the content.
I want to differentiate between the 2 scenarios in my patched function.
Any help will be appreciated.
Thanks & Regards,
Salil
Function CopytoClipboard(textToCopy As String)
' code adapted from:
' http://www.dailydoseofexcel.com/archives/2004/12/02/putting-text-into-the-windows-clipboard/
Dim objDataObj As DataObject
Set objDataObj = New DataObject
With objDataObj
.SetText (textToCopy)
.PutInClipboard
End With
End Function
HTH,
JP
On Jul 1, 9:32 am, salil_taneja
Any suggestions will be greatly appreciated!
Scott
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
-Salil
Can you suggest any way using which I can differentiate between the 2
scenarios above in the original question?
Regards,
Salil
As you've written your own IDataObject::GetData function, I assume
you're doing that in Visual Studio or VSTO. I've never gotten involved
in that.
John
"salil_taneja" <salil...@discussions.microsoft.com> wrote in message news:4506B68D-FCAF-463E...@microsoft.com...