GetFormat

This method returns an integer indicating whether an item on the Clipboard object matches a specified format.

Syntax

clipboard.GetFormat(format)

Parameters

clipboard
Reference to the Clipboard object.
format
Required. Value or constant that specifies the Clipboard object format. Parentheses must enclose the constant or value. The following table describes the settings for format.
Constant
Value
Description
vbCFLink -16640 DDE conversation information
vbCFText 13 Text
vbCFBitmap 2 Bitmap (.bmp files)
vbCFMetafile 3 Metafile (.wmf files)
vbCFDIB 8 Device-independent bitmap (DIB)
vbCFPalette 9 Color palette

Return Value

Boolean. True indicates the format matches the type of data on the clipboard. False indicates the format does not match the type of data on the clipboard.

Remarks

The only supported clipboard format is text (vbCFText).