A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Clear Clipboard in Access 2000



 
 
Thread Tools Display Modes
  #1  
Old May 13th, 2004, 06:09 PM
Ricardo
external usenet poster
 
Posts: n/a
Default Clear Clipboard in Access 2000

Hi,

How does one clear the Clipboard in Access 2000?

The good old "Application.CutCopyMode = False" doesn't work anymore.

I would appreciate some help.

Thanks,
Ricardo
  #2  
Old May 13th, 2004, 09:08 PM
Stephen Lebans
external usenet poster
 
Posts: n/a
Default Clear Clipboard in Access 2000

' Place these API declarations at the top of your Form in the General
Declarations area.
Private Declare Function OpenClipboard Lib "user32" (ByVal hWnd As Long)
As Long
Private Declare Function CloseClipboard Lib "user32" () As Long
Private Declare Function EmptyClipboard Lib "user32" () As Long


Private Sub cmdClip_Click()
On Error GoTo Err_cmdClip_Click

' Open, Empty and Close Clipboard
' No Clipboard API error handling
Call OpenClipboard(0&)
EmptyClipboard
CloseClipboard
MsgBox "ClipBoard Cleared!"


Exit_cmdClip_Click:
Exit Sub

Err_cmdClip_Click:
MsgBox Err.Description
Resume Exit_cmdClip_Click

End Sub


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"Ricardo" wrote in message
om...
Hi,

How does one clear the Clipboard in Access 2000?

The good old "Application.CutCopyMode = False" doesn't work anymore.

I would appreciate some help.

Thanks,
Ricardo


  #3  
Old May 14th, 2004, 11:04 AM
Ricardo
external usenet poster
 
Posts: n/a
Default Clear Clipboard in Access 2000

Thanks Stephen,

that worked out just I expected it to!

Regards,
Ricardo

"Stephen Lebans" wrote in message ...
' Place these API declarations at the top of your Form in the General
Declarations area.
Private Declare Function OpenClipboard Lib "user32" (ByVal hWnd As Long)
As Long
Private Declare Function CloseClipboard Lib "user32" () As Long
Private Declare Function EmptyClipboard Lib "user32" () As Long


Private Sub cmdClip_Click()
On Error GoTo Err_cmdClip_Click

' Open, Empty and Close Clipboard
' No Clipboard API error handling
Call OpenClipboard(0&)
EmptyClipboard
CloseClipboard
MsgBox "ClipBoard Cleared!"


Exit_cmdClip_Click:
Exit Sub

Err_cmdClip_Click:
MsgBox Err.Description
Resume Exit_cmdClip_Click

End Sub


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"Ricardo" wrote in message
om...
Hi,

How does one clear the Clipboard in Access 2000?

The good old "Application.CutCopyMode = False" doesn't work anymore.

I would appreciate some help.

Thanks,
Ricardo

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:48 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.