Empty Clipboard using Visual Basic

G

Guest

Does anyone know what the command would be in Visual Basic to empty the
Clipboard for example when closing a form?

Thank you,

Nora
 
D

Dirk Goldgar

Sarah said:
Does anyone know what the command would be in Visual Basic to empty
the Clipboard for example when closing a form?

Thank you,

Nora

Is it Nora or Sarah?

The page below includes several function for manipulating the clipboard,
including emptying it:

http://www.mvps.org/access/api/api0049.htm
API: Copy variables/control contents to memory

With those API functions declared, I believe your call sequence would
be:

If OpenClipboard(0&) <> 0 Then
Call EmptyClipboard
If CloseClipboard = 0 Then
MsgBox "Could not close Clipboard."
End If
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top