# 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://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-4206c29ff65b83711225815595392e7aee85118a%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure></div>
