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 / June 2005

Tip: Looking for answers? Try searching our database.

windows messagebox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fred Kruger - 29 Jun 2005 16:18 GMT
i have created a subprocedure that opens docum,ents and copies details from
the to be added to a document it then closes the document but i get the
message "you have copied a large ammount of data to the clipbourd do you wish
to make it available to others  or words to that effect.

i dont wish to save it and want for this message not to show eachtime is
there anyway i can switch this off whilst running the subroutine?

Fred
Jezebel - 29 Jun 2005 17:20 GMT
Simplest is just to copy something else (ie something small) to the
clipboard before closing the document.

>i have created a subprocedure that opens docum,ents and copies details from
> the to be added to a document it then closes the document but i get the
[quoted text clipped - 6 lines]
>
> Fred
Ben M - 30 Jun 2005 12:14 GMT
You need to clear the clipboard before closing.

This way works fine, as long as you reference the Microsoft Forms 2.0 Object
Library (or just add a blank form to your project and remove it).

Sub ClearClipboard()
  Dim oDataObject As DataObject
  Set oDataObject = New DataObject
  oDataObject.SetText ""
  oDataObject.PutInClipboard
  Set oDataObject = Nothing
End Sub

Cheers!  Ben

> Simplest is just to copy something else (ie something small) to the
> clipboard before closing the document.
[quoted text clipped - 9 lines]
> >
> > Fred
 
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.