# Datatable型の行抽出について

**URL:** <https://forum.uipath.com/t/datatable/175771>\
**Category:** フォーラム\
**Tags:** datatable, question, studio, excel\
**Created:** [December 10, 2019, 1:02am UTC](https://forum.uipath.com/t/datatable/175771 "2019-12-10T01:02:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lakshman](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lakshman/32/523490_2.png) [@lakshman](https://forum.uipath.com/u/lakshman)\
**Post date:** [December 10, 2019, 1:42am UTC](https://forum.uipath.com/t/datatable/175771/2 "2019-12-10T01:42:23Z")

</div>

@mac1

1. First create one DataTable with all required columns using **Build DataTable** activity and say ‘newDT’.

2. To read the first row from DataTable.  
DataRow firstRow = Dt1(0)

3. And then use **Add DataRow** activity and pass that **firstRow** and DataTable as **newDT**.

4. And then use **Write Range** activity and pass **newDT** to write into required excel file.

---

_[View the full topic](https://forum.uipath.com/t/datatable/175771)._
