web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamic cell refence f...
Power Automate
Answered

Dynamic cell refence for UI element

(0) ShareShare
ReportReport
Posted on by 6

Hi 

Good day.

I am new to power automate desktop.

I have a flow click ui element in window.

but i want to loop it that it will click the cell B2, B3,B4 and so on until it will finish in the last row.

Does anyone know how to make the ui element dynamic?that the reference cell will change in the loop.

  • eetuRobo Profile Picture
    4,587 Super User 2026 Season 2 on at

    Use Set Variable -action to have a variable to use for the cell.
    In you UI element change the cell that it refers to for example B2(or what ever cell you picked when creating the UI element) to refer to the variable you created for the dynamic cell.

    eetuRobo_0-1708240731468.png

    Sometimes you need to change the UI element to be in Text editor mode for it to work with variables. Not always though. I think usually when you use integer and not string.

    eetuRobo_1-1708240825819.png

     

  • saimond Profile Picture
    6 on at

    Hi @eetuRobo  I already did this set the variable.

    set the variable to B2.

    but how do i increment this that it will change to b3,b4 and so on inside the loop.

  • Verified answer
    eetuRobo Profile Picture
    4,587 Super User 2026 Season 2 on at

    You can make ColumnIndex variable which is just number and then increase that by every loop.

    eetuRobo_1-1708248811837.png
    UI element you can have the hardcoded B and then after that the ColumnIndex which is just the integer variable which you increase every loop: B%ColumnIndex%

    eetuRobo_0-1708248796242.png
    Then of course you can also have the B to be ColumnLetter -variable which you can change if you want to change column when the columnIndex is for example last row in that table. So If ColumnIndex = 5 then Set ColumnIndex  to 1 and ColumnLetter to C.
    Or you can build switch case. Quick example:
    If ColumnVar is B2 change it to B3 and use that in the UI element.

    eetuRobo_2-1708249277434.png

    Many different ways to do this.

  • saimond Profile Picture
    6 on at

    @eetuRobo  thanks you.now working.

    It helps a lot.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 245 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard