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