Close Excel Action(Power Automate Desktop)

08/21/2023

Japanese version.

The Close Excel Action closes and saves the Excel file opened in Launch Excel Action or Attach to running Excel Action .

If you want to save the file without closing it, use Save Excel Action.

How to use

Drag Close Excel Action from Excel onto the workspace.

Set Parameters.

Parameters

Excel instance

Specify the target Excel file.

Specify the Variables produced for the Launch Excel Action or the Attach to running Excel Action.

Before closing Excel

ValueDescription
Do not save documentClose without saving.
Save documentSave the updates.
Save document asSpecify additional file paths and file formats.
Document format

Only if Before closing Excel is Save document as, specify an additional file saving format.
In most cases, Default (From Extensions) is specified.

Document path

Only if Before closing Excel is Save document as, specify an additional file location in one of the following ways

When specifying variables, Display select file dialog is used.
The main case will be that the tool user selects a file.

If there is a possibility that the specified file already exists If the specified file may already exist, it is recommended to check its existence in advance.

Variables produced

Not present in this action.

On Error

Error handling is performed as needed.

Failed to save Excel document

This is an error when a file fails to save, for example, because the user does not have write permission to the destination directory.

Failed to close Excel instance

This error occurs when the Excel application fails to close.

If this occurs, it is recommended to check if the file has been saved and restart the computer.

Links

Excel Actions.

Examples of Use

How to convert URL parameters (GET parameters) into Data table.

How to rank a list of numbers.

How to get the deviation.

Send newsletter. Email one line at a time from an Excel book.

Transcribing from one Excel book to another.

How to get the last business day of the specified month.

How to get the number of business days for a specify month.

How to get the number of business days within a specified period.

How to get the least common multiple and greatest common divisor.

How to convert between Roman numerals and Arabic numerals.

How to get the median.

How to get the standard deviation.

How to get the mode.

How to convert CSV files to Excel files

How to convert Excel files to CSV files.

How to record the contents of an incoming email line by line in an Excel book.

Create a table of contents for sheet names in an Excel book.

Delete rows of Excel with specific conditions.

How to open Excel in the background.

How to delete multiple rows/columns in Excel.

How to read an Excel file and process it line by line in a loop.