Exporting data to MS Excel workbook
To export data from AnyLogic database table(s) to MS Excel file
- In the Projects
view, click the model's Database item.
- In the Properties view, expand the Export section.
- Before doing the export, you need to set it up. If you have not done this yet, click the Export settings... label.
- You will see the Export settings dialog. Using the Browse... button, select the MS Excel file where you want to write the information. The button to the right allows to switch between the absolute and relative file path.
- Below, in the Select
tables you want to export list, select the check boxes for the database tables you want to export to MS Excel workbook.
- We have finished defining the export settings. Click the OK
- If you want to perform the data export, in the Database properties, click the label Export tables to Excel.
- If you want data to be exported every time when the model execution is finished or terminated by the user, select the check box Export tables at the end of model execution.
the selected MS Excel file is currently opened, you will see the
error message. Close the MS Excel application, and repeat the export
If the export was successful, you can open the MS Excel file, and see
that AnyLogic added new worksheet(s), one per each exported database
table, and wrote the data there.