# Refresh internal excel data

**URL:** <https://forum.katalon.com/t/refresh-internal-excel-data/26178>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [May 24, 2019, 11:58am UTC](https://forum.katalon.com/t/refresh-internal-excel-data/26178 "2019-05-24T11:58:16Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Arnel](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arnel/32/6360_2.png) [@Arnel](https://forum.katalon.com/u/Arnel)\
**Post date:** [June 29, 2022, 7:56pm UTC](https://forum.katalon.com/t/refresh-internal-excel-data/26178/5 "2022-06-29T19:56:56Z")

</div>

Hello [neamehbaydoun66](http://forum.katalon.com/u/neamehbaydoun66),

You can try this

```auto
import com.kms.katalon.core.testdata.reader.ExcelFactory

//create an instance
ExcelData excel = ExcelFactory.getExcelDataWithDefaultSheet("yourExcelPath.xlsx", "SheetName", true)

//pass your test case variables
excel.getValue("tc_variable", 1)

```

Where  
-First parameter will be the excel path  
-Second parameter will be the sheet name. You can change sheet name on run time just put a string variable  
-Third, make it true if you want to make the first row as headers or false if you want to make the first row as plain record

Hope that helps. . . 😃

---

_[View the full topic](https://forum.katalon.com/t/refresh-internal-excel-data/26178)._
