Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2007

Tip: Looking for answers? Try searching our database.

Clear Clipboard

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vbaNOOB - 23 Mar 2007 09:58 GMT
Hi

I have a vba that will do copy and paste thing from the active doc to a new
doc.
After running the program, I got some items in the clipboard
how can I clear/delete these item from the clipboard.

I have try sth like this (from the web)
Dim  MyData  As DataObject

Set MyData = New DataObject
MyData.SetText ""
MyData.PutInClipboard

but it seems not work
Helmut Weber - 23 Mar 2007 13:21 GMT
Hi,

what doesn't work?
Do you get an error message?

http://word.mvps.org/faqs/macrosvba/ManipulateClipboard.htm

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Tony Jollans - 23 Mar 2007 14:48 GMT
You cannot (post 2000) access the Office clipboard from VBA. The code you
post is for the Windows clipboard.

Signature

Enjoy,
Tony

> Hi
>
[quoted text clipped - 12 lines]
>
> but it seems not work
vbaNOOB - 02 Apr 2007 03:50 GMT
That mean, I cant clear the office clipboard using VBA??

> You cannot (post 2000) access the Office clipboard from VBA. The code you
> post is for the Windows clipboard.
[quoted text clipped - 15 lines]
> >
> > but it seems not work
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.