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 / How to handled dynamic...
Power Automate
Unanswered

How to handled dynamic Document name in "Attach to running Excel"

(0) ShareShare
ReportReport
Posted on by 22

Hi Guys,

I am using "Attach to running Excel" action to navigate through running excel instance,

but the document name is dynamic(Output.xls, Output(1).xls, Output(2).xls....).

Please help me into this how to handle dynamic document name.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I have something similar. First, change Output.xlsx  to Output(0).xlsx; you can do that with Rename File.

     

    Next, run your process through a loop to do whatever you need. The loop should start at 0, increment by 1. In the file name of attach to Excel, replace the number with %LoopIndex%.

     

    For dynamic windows UI elements, after you have captured an Excel UI, edit the selectors, go to Name, change to “contains” and change the text to just “Output”; therefore, all the UI connectors will work for any workbook with the title containing Output.  

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
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard