Hi Paul,
I just tested your suggestion, but I cannot get it to work on my system. I
thought for sure it would work, because I noticed the same exact declaration
in KB 210216, along with code that reads as follows:
' Clear the Clipboard.
X = EmptyClipboard()
Yet, everything I try, either from the Immediate Window, or from a new
subroutine just to call the EmptyClipboard function, does not seem to empty
it on my PC.
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
:
Or you can use the Windows API call.
'Include this line in the module header, before the first procedure, or
change it to Public and include it in any module.
Private Declare Function EmptyClipboard Lib "user32" () As Long
Then anywhere in the module,
Call EmptyClipboard
__________________________________________
"Tom Wickerath" wote:
Hi Mike,
Try the code in this KB article:
How to Send Information to the Clipboard
http://support.microsoft.com/kb/210216
To clear the clipboard, send a zero length string:
ClipBoard_SetData("")
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
:
I've done a lot of copying and pasting. I am now getting, "The data on the
Clipboard is damaged, so Microsoft Offfice Access can't paste it."
I'm using M/S Access 2007.
How do I clear the clipboard in M/S Excel or Access?
Thx,
Mike