# How to handle dataset to Excel as a workbook?

**URL:** <https://forum.inductiveautomation.com/t/how-to-handle-dataset-to-excel-as-a-workbook/88471>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [April 6, 2024, 10:43pm UTC](https://forum.inductiveautomation.com/t/how-to-handle-dataset-to-excel-as-a-workbook/88471 "2024-04-06T22:43:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![denny\_jimenez](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@denny\_jimenez](https://forum.inductiveautomation.com/u/denny_jimenez)\
**Post date:** [April 6, 2024, 10:43pm UTC](https://forum.inductiveautomation.com/t/how-to-handle-dataset-to-excel-as-a-workbook/88471/1 "2024-04-06T22:43:53Z")

</div>

Hello! I have the following piece of code:

`aWb = system.dataset.toExcel(True, listSh, True, listNames)`

As per the Ignition documentation, aWb is an array representing an excel workbook, but I need it to be a workbook object so I can use Apache POI methods such as getRow.

What is the best way to do it? Thanks in advance.
