# Add "read" sheet protection to Excel file

**URL:** <https://forum.knime.com/t/add-read-sheet-protection-to-excel-file/63860>\
**Category:** KNIME Analytics Platform\
**Created:** [March 17, 2023, 2:39pm UTC](https://forum.knime.com/t/add-read-sheet-protection-to-excel-file/63860 "2023-03-17T14:39:02Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [March 20, 2023, 9:57am UTC](https://forum.knime.com/t/add-read-sheet-protection-to-excel-file/63860/5 "2023-03-20T09:57:57Z")

</div>

@tstolle94 you can extract the path of the Excel file you have written in KNIME and provide the full path to Python.

> **[Extract File Name and add new extension to Path variable – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/kn_example_path_name_file~EWlQgy0R4DeQuFg_/current-state)**
>
> Extract File Name and add new extension to Path variable

> [@Input file name to output file name](https://forum.knime.com/t/input-file-name-to-output-file-name/48532/2):
>
> @johnnybasha you can [capture the file name](https://docs.knime.com/latest/analytics_platform_flow_control_guide/index.html#img-flow-variables-tab-dialog) given (or it might come as an [already existing Path variable](https://forum.knime.com/t/write-multiple-csv-file-to-a-loop/44989/2)) maybe from a [List Files/Folders – KNIME Hub](https://kni.me/n/UhVxxmmRQ6ZmuPt7) node. You can separate the File Nam from the extension so you might create a new file name with a different extension in a Java Edit node or directly create a new Path variable. [image] [kn\_example\_path\_name\_file.knwf](https://forum.knime.com/uploads/short-url/5nwgU6pHUMqnEpAKbi7iZXYOyiv.knwf) (34.2 KB)

The path of the file you saved can be converted to a Flow Variable

![image](https://forum-cdn.knime.com/uploads/default/original/3X/7/2/72fed262f7a10d95b858d012872207823bc07e72.png)

You can extract the absolute path from there for example:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/2/0/200c16d99210d580174fd2ead3015fbc592a5641.png)

---

_[View the full topic](https://forum.knime.com/t/add-read-sheet-protection-to-excel-file/63860)._
