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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Remove post

(0) ShareShare
ReportReport
Posted on by 164

removed

 

 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @Alphadrag 

     

    Please refer two different solutions suggested by @mattias1172 and @MichaelAnnis in the post below.

     

    https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Power-Automate-Desktop-Merging-Appending-1-400-Excel-Files/m-p/1516065

     

  • Riyaz_riz11 Profile Picture
    3,891 Super User 2025 Season 2 on at

    Hi @Alphadrag 

    Please follow these steps.

    Ahammad_Riyaz_0-1648443057560.png

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Alphadrag Profile Picture
    164 on at

    removed

  • Riyaz_riz11 Profile Picture
    3,891 Super User 2025 Season 2 on at

    Hi @Alphadrag ,

     

    In that case,

    After Launch excel you have to use get free row and column action,

    After that use for each.

    In write excel use variable for rows write variable, Freerow-1

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • Alphadrag Profile Picture
    164 on at

    removed

  • Verified answer
    Riyaz_riz11 Profile Picture
    3,891 Super User 2025 Season 2 on at

    Hi @Alphadrag 

     

    In that case best approach you can use One template excel with all excel column headers.

    and directly write excel with using get free column and row and every time it will write data.

    You can use same code just copy paste into PAD

     

    Folder.GetFiles Folder: $'''C:\\Users\\Ahammad Riyaz\\Downloads''' FileFilter: $'''*.xlsx''' IncludeSubfolders: False FailOnAccessDenied: True SortBy1: Folder.SortBy.NoSort SortDescending1: False SortBy2: Folder.SortBy.NoSort SortDescending2: False SortBy3: Folder.SortBy.NoSort SortDescending3: False Files=> Files3
    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''template.xlsx''' Visible: True ReadOnly: False Instance=> ExcelInstance8
    LOOP FOREACH CurrentItem5 IN Files3
     Excel.GetFirstFreeColumnRow Instance: ExcelInstance8 FirstFreeColumn=> FirstFreeColumn4 FirstFreeRow=> FirstFreeRow4
     Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: CurrentItem5 Visible: True ReadOnly: False Instance=> ExcelInstance9
     Excel.GetFirstFreeColumnRow Instance: ExcelInstance9 FirstFreeColumn=> FirstFreeColumn3 FirstFreeRow=> FirstFreeRow3
     Excel.ReadFromExcel.ReadCells Instance: ExcelInstance9 StartColumn: 1 StartRow: 3 EndColumn: FirstFreeColumn3 - 1 EndRow: FirstFreeRow3 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelData
     Excel.CloseExcel.Close Instance: ExcelInstance9
     Excel.WriteToExcel.WriteCell Instance: ExcelInstance9 Value: ExcelData Column: 1 Row: FirstFreeRow4
    END
    Excel.CloseExcel.CloseAndSaveAs Instance: ExcelInstance8 DocumentFormat: Excel.ExcelFormat.FromExtension DocumentPath: $'''Final.xlsx'''

     

    Ahammad_Riyaz_0-1648453214293.png

     

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Alphadrag Profile Picture
    164 on at

    removed

  • Riyaz_riz11 Profile Picture
    3,891 Super User 2025 Season 2 on at

    Hi @Alphadrag 

     

    Excel instance you are defined wrong i think, just pass the Launch excel template ---instance1 same instance u hav to give in Write excel 21st line

  • Alphadrag Profile Picture
    164 on at

    removed

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard