# How to set and use variables in node property panels

**URL:** https://discourse.nodered.org/t/how-to-set-and-use-variables-in-node-property-panels/64297
**Category:** General
**Created:** [23 June 2022 17:17 UTC](https://discourse.nodered.org/t/how-to-set-and-use-variables-in-node-property-panels/64297 "2022-06-23T17:17:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Wilay](https://avatars.discourse-cdn.com/v4/letter/w/54ee81/32.png) [@Wilay](https://discourse.nodered.org/u/Wilay)
#### Post date: [23 June 2022 17:17 UTC](https://discourse.nodered.org/t/how-to-set-and-use-variables-in-node-property-panels/64297/1 "2022-06-23T17:17:53Z")

</div>

I am trying to make a system that is flexible depending on the input that a Google Sheets node (node-red-contrib-google-sheets) receives. I'd like to, depending on the input received, change the targeted Sheet/Tab in my document, using the "Cells" property of said node. However, I'm unsure as to how I can set a reference for a property instead of simply typing out a definitive target.

I'd greatly appreciate any help regarding how I can use references in properties!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [22 August 2022 17:18 UTC](https://discourse.nodered.org/t/how-to-set-and-use-variables-in-node-property-panels/64297/2 "2022-08-22T17:18:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
