# DOWNLOADEXCEL

#### Syntax

**DOWNLOADEXCEL**(*widget*; *fileName*)

1. *widget* - the table widget whose content is to be used as an Excel file - ***Value type**: table widget*
2. *fileName* - the name under which the Excel file is downloaded - ***Value type**: text (optional, default value: the name of the current page)*

#### Example

Clicking on the "Download Excel" button creates an Excel file with the content of the *wineList* table widget and then downloads it with the file name "Winelist.xlsx".

<div align="left"><figure><img src="https://3862539772-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4X6nN2wTlDsVpd8P1WDM%2Fuploads%2FH07uMV0mUSWZJuEfp4pJ%2Fgrafik.png?alt=media&#x26;token=9259281c-7bec-4741-b3d0-a199d28e9d17" alt=""><figcaption></figcaption></figure></div>
