Home Products Customers Tips VBA OfficeOne on Mac Contact us

Check if Clipboard is Empty

To determine whether the clipboard is empty or not, count the number of formats present on the clipboard. The IsClipboardEmpty() function shown here does shows how:

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

Function IsClipboardEmpty() As Boolean
    IsClipboardEmpty = (CountClipboardFormats() = 0)
End Function

Home | Products | Tips | VBA | FAQ | Utilities | Disclaimer | Privacy Policy | Mac | Links | Contact us

Contact OfficeOne on email at officeone@officeoneonline.com. Copyright © 2001-2018 OfficeOne. All rights reserved.

page counter