# Can I get the sheet name from an Excel file?

**URL:** <https://forum.electroneek.com/t/can-i-get-the-sheet-name-from-an-excel-file/3609>\
**Category:** Studio Pro\
**Created:** [November 21, 2023, 4:54pm UTC](https://forum.electroneek.com/t/can-i-get-the-sheet-name-from-an-excel-file/3609 "2023-11-21T16:54:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cris-dsc](https://forum.electroneek.com/user_avatar/forum.electroneek.com/cris-dsc/32/768_2.png) [@cris-dsc](https://forum.electroneek.com/u/cris-dsc)\
**Post date:** [November 21, 2023, 4:54pm UTC](https://forum.electroneek.com/t/can-i-get-the-sheet-name-from-an-excel-file/3609/1 "2023-11-21T16:54:52Z")

</div>

Hi. I have a bot that needs to read an excel file and process its data. For it to work properly, the sheet must have a specific name. However, people who create the files for the bot to read are having trouble saving the file with the correct name.

I know there is the `Rename sheet` acitivity, but I need to know the original name of the sheet in order to rename it, and I can’t guess how people are going to name it beforehand. Is there a way to get the sheet name from the data in the file in the background, without opening the file?

---

<div class="post-metadata">

**Author:** ![Muhammad\_Hayyan](https://forum.electroneek.com/user_avatar/forum.electroneek.com/muhammad_hayyan/32/1746_2.png) [@Muhammad\_Hayyan](https://forum.electroneek.com/u/Muhammad_Hayyan)\
**Post date:** [November 22, 2023, 9:06am UTC](https://forum.electroneek.com/t/can-i-get-the-sheet-name-from-an-excel-file/3609/2 "2023-11-22T09:06:10Z")

</div>

Hello @cris-dsc

I don’t know if that is possible or not. But I can suggest you a work around for this problem, if you can use it in your project.

Is that possible you create a new sheet **“Sheet Names”** and ask user to add the name of the sheet that user wants to create in this sheet and then create a new sheet with the exact same name added in the “Sheet Names”. This way you could get the names of all the sheets created by the user. You can access any sheet create by the user and process its data.

I hope it helps you.

---

<div class="post-metadata">

**Author:** ![m4gnate](https://forum.electroneek.com/user_avatar/forum.electroneek.com/m4gnate/32/1752_2.png) [@m4gnate](https://forum.electroneek.com/u/m4gnate)\
**Post date:** [November 22, 2023, 11:26pm UTC](https://forum.electroneek.com/t/can-i-get-the-sheet-name-from-an-excel-file/3609/3 "2023-11-22T23:26:33Z")

</div>

Hi @cris-dsc yes you can get it using Js method.

sheetName = Object.getOwnPropertyNames(excel\_content)[0]

Best Regards
