Type | Description | |||
Destination as Variant |
A String expression that specifies the file/format to be created. The
Destination parameter indicates the format to be created as follows:
No error occurs, if the Export method can not create the file. | |||
Options as Variant | A String expression that specifies the options to be used when exporting the control's data, as explained bellow. |
Return | Description | |||
Variant | The
result of the Export method is a:
|
The Options parameter consists a list of fields separated by | character, in the following order:
The Destination parameter indicates the file to be created where exported date should be saved. For instance, Export( Destination,"sel|0,1|;") exports the cells from columns 0, 1 from the selected items, to a CSV using the ; character as a field separator. If Destination is empty or missing, the Export returns the result as a string.
The "CSV" refers to any file that:
You can use the CopyTo to export the control's view to clipboard/EMF file.