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 / Trouble Building Flow ...
Power Automate
Answered

Trouble Building Flow to Paste File Contents to Existing Excel

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I am new to designing flows. I am trying to create a flow that will copy a text file from a folder that is in table format and paste it into an existing Excel document. Currently I am stuck that only the top row of the text file will paste so I tried a for each loop with no luck. I have pasted a current state of my flow below for reference. Any advice or resources would be greatly appreciated!

kirabray_0-1644958497787.png

 

I have the same question (0)
  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    Try Launch Excel, and use the text file as the filename.  This will prompt Excel to open the text file, it should open correctly, and you won't have to write it to excel.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I didn't think of that, thank you! Do you know of a way to select a whole column in the Excel sheet? It gives an error if end row is not filled out.

    kirabray_0-1645038179118.png

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    %FirstFreeRow - 1%

     

    Math on a variable has to go inside the % sign.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 227

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard