Help with Clipboard Error

M

Mitch

The following code came from a post yesterday about
clearing the clipboard.

Public Declare Function OpenClipboard Lib "user32" (_
ByVal Hwnd As Long) As Long

Public Declare Function CloseClipboard Lib "user32" () As
Long

Public Declare Function EmptyClipboard Lib "user32" () As
Long

Sub ClearClipboard()
OpenClipboard (0&)
EmptyClipboard
CloseClipboard
End Sub

I declared the functions with the rest of the public
variables and created a module for the sub ClearClipboard.

After I copied data, I called the ClearClipboard sub (to
clear the Office Clipboard and received the following
error message:

Can't find DLL entry point OpenClipboard in User 32

Any help on what I'm doing wrong would be GREATLY
appreciated. Thanks for the help.
..
 
I

ionaran

How can I reference to MICROSOFT FORMS 2.0 OBJECT LIBRARY in a
module.(Not a form..)
thankss
 
I

ionaran

Hmm.. Nobody answers hmm.
Well..
Then I just realized that I can reference to MICROSOFT FORMS 2.0 OBJEC
LIBRARY from Menu Bar->tools->references...
Sorry for my inexperience..
 

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

Similar Threads


Top