GetClipboardData
Retrieves data from the Clipboard in a specified format. The Clipboard must have been opened previously.
See also: https://msdn.microsoft.com/en-us/library/windows/desktop/ms649039(v=vs.85).aspx
Syntax
GetClipboardData( wFormat )
Parameters
Name | Type | Description |
---|---|---|
wFormat | Long | Required. The Clipboard format. This module uses CF_TEXT only. |
Return value
Long : NULL if the function failes, otherwise the handle to the data.
Code
Declare Function GetClipboardData Lib "user32" (ByVal wFormat As Long) As Long
See also
- GetStringFromClipboard