Exporting data to MS Excel workbook

 To export data from AnyLogic database table(s) to MS Excel file

  1. In the Projects view, click the model's Database item.
  2. In the Properties view, expand the Export section. 
  1. Before doing the export, you need to set it up. If you have not done this yet, click the Export settings... label.
  2. 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.
  3. 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. 
  4. We have finished defining the export settings. Click the OK button.
  1. If you want to perform the data export, in the Database properties, click the label Export tables to Excel.
  2. 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.

 If the selected MS Excel file is currently opened, you will see the error message. Close the MS Excel application, and repeat the export scenario.

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.