: Use the XlsxWriter or Pandas libraries to write a single dataframe to an in-memory buffer ( BytesIO ).
: Use SpreadsheetApp.getUi().showModalDialog() to display a "Click to Download" link to the user. Method 2: Custom Web App (JavaScript / Python)
For a custom dashboard or website, you need to generate the file in memory and trigger a browser download.
: Pass output.getvalue() to a download button component to serve the file directly to the user. Method 3: Manual Workflow (Excel Desktop)
If you are doing this manually in Excel and want to save just one sheet as its own file: Download Button with Excel File - Using Streamlit
Download One Sheet Xlsx May 2026
: Use the XlsxWriter or Pandas libraries to write a single dataframe to an in-memory buffer ( BytesIO ).
: Use SpreadsheetApp.getUi().showModalDialog() to display a "Click to Download" link to the user. Method 2: Custom Web App (JavaScript / Python)
For a custom dashboard or website, you need to generate the file in memory and trigger a browser download.
: Pass output.getvalue() to a download button component to serve the file directly to the user. Method 3: Manual Workflow (Excel Desktop)
If you are doing this manually in Excel and want to save just one sheet as its own file: Download Button with Excel File - Using Streamlit