Skip to content

SetData Method

Description

Inserts data into a DataObject object using the specified data format.

Syntax

Public Sub SetData( _
    Optional ByVal vValue As Variant, _
    Optional ByVal Format As Variant _
)

Parameters

  • vValue: Optional. A variant containing the data to be passed to the DataObject object.
  • Format: Optional. A constant or value that specifies the format of the data being passed, as described in Settings.

Format Constants

Constant Value Description
vbCFText 1 Text (.txt files)
vbCFBitmap 2 Bitmap (.bmp files)
vbCFMetafile 3 Metafile (.wmf files)
vbCFEMetafile 14 Enhanced metafile (.emf files)
vbCFDIB 8 Device-independent bitmap (DIB)
vbCFPalette 9 Color palette
vbCFFiles 15 List of files
vbCFRTF -16639 Rich text format (.rtf files)

See Also

DataObject Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.