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 / Open any excel in fold...
Power Automate
Unanswered

Open any excel in folder and edit it

(0) ShareShare
ReportReport
Posted on by 5

Hi,

 

I am using power automate desktop, and I need to do the fallowing:

 

To find the excel file in folder and open it, with note the excel file name is not fix, it's change so I need power automate to find the excel and open it regardless the name.

 

Other point I need power automate desktop in excel to copy a cell with formula and past only the value in different cell.

 

Can you please advise me?

 

Thank you 

I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Try this:
    1. 'Get files in folder': input the folder where excel is and File filter = *.xlsx. This will give you %Files% as variable produced
    2. 'Launch Excel': Launch Excel and open the following document, Document Path = %Files[0]%. This gives %ExcelInstance% as variable produced
    To copy and paste:
    3. 'Read from Excel worksheet': Excel instance = %ExcelInstance%, retrieve = The value of a single cell. Input row and column coordinates. %ExcelData% as variable produced
    4. 'Write to Excel worksheet': Excel instance = %ExcelInstance%, Value to write = %ExcelData%, Write mode = On specified cell. Define coordinates of cell you want to paste

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for this. I was able to get the automation running but it only opens and edits the first file in the folder. How do I get it to repeat the action for all files in that folder?

  • mktranslation Profile Picture
    32 on at

    You need to use Loop function. Namely, For Each, and use %Files[0]% as CurrentItem..

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 482

#2
11manish Profile Picture

11manish 280

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard