Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
CLEARING THE CLIPBOARD !!!
Hi - I am using Chip Pearson's code below to clear the clipboard. I have assigned it to a form's command control and when I compile, I get "Only comments may appear after End Sub, End Function, or End property." What am I doing wrong? Below is how I am using the code: Private Sub CommandButton2_Click() Private Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function EmptyClipboard Lib "user32" () As Long Private Declare Function CloseClipboard Lib "user32" () As Long ''''Sub ClearClipboard() OpenClipboard (0&) EmptyClipboard CloseClipboard ''''End Sub End Sub *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
clearing the clipboard | Excel Discussion (Misc queries) | |||
Clearing the clipboard | Excel Programming | |||
Clearing the clipboard | Excel Programming | |||
Clearing Clipboard | Excel Programming | |||
clearing the clipboard | Excel Programming |