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 convert multipl...
Power Automate
Answered

How to convert multiple .xls files to .xlsx using Power Automate Desktop?

(1) ShareShare
ReportReport
Posted on by 12

Hi,

I am trying to create a Power Automate desktop flow to open multiple excel files of the type .xls and convert it into .xlsx.

I have enclosed the file with the steps. On running the flow, the application does the job perfectly for the first work book via some components + desktop recording. However, when it tries to run for the subsequent workbooks, it throws an error as below.

Failed to press button (failed to get window)

1) It works fine for just one excel file that I recorded (ex: Book1.xls) and stops for the next excel file (Book 2.xls) though the tool bar of excel application never changes and I am passing the latest file name as a variable for the flow to look into every time. How can this be fixed? I see that the UI element is showing as "Window 'Book1- Excel'>Button 'File Tab' and is not recognizing the file tab for the next workbook that it has to convert.

2) Also, is there any alternative way of doing this via desktop power automate without using desktop recording?

Flow overview.PNG

 

 

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

    Your flow is fine, it is your UI elements.  They are all pointed at Window "Book1", so it's not able to point at the next set when you go to the next file.  Do this:

     

    In the far right pane of edit mode, select the icon for UI selectors:

    MichaelAnnis_0-1632413139453.png

    Hover over the right edge of Window 'Book1.xlsx - Excel' and left click the 3 dots that appear:

    MichaelAnnis_1-1632413225905.png

    Click on Edit Selectors:

    MichaelAnnis_2-1632413260792.png

    Hover over the text that appears and again, select the 3 dots on the right, and click Edit Selector again:

    MichaelAnnis_3-1632413333009.png

    Here, simply uncheck the "Name"

    MichaelAnnis_4-1632413427641.png

     

    It will, by default, use the Excel program that is open, ignoring the name "Book1" and working for any open Excel UI.  All the other UI selectors should be a subset of the Window "Book1", so when you remove Window from this header selector, all the others should fall in line.   

     

    Notice how my selectors are all subsets of Window "PartnerCloseRequests":

    MichaelAnnis_5-1632413561878.png

     

    So, if I were to uncheck Name, then these 3 selectors would work for any open excel window.

     

    Best of Luck!

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Hi @SA41 

     

    For point no 2:

     

    After the 'Launch Excel' action use the below

     

    VJR_2-1632465104376.png

     






    -------------------------------------------
    Help fellow beings find relevant posts.
    Upvote to a supporting response.
    Mark as solution to an answer.

     

     

  • SA41 Profile Picture
    12 on at

    Thank you so much @MichaelAnnis  !

  • SA41 Profile Picture
    12 on at

    Thank you so much @VJR 

  • EdiSM Profile Picture
    52 on at

    Hi SA41,

     

    can you please help me with all the flow?

    I need the flow to do same thing , to convert multiple xls to Xlsx.

     

    thank you,

  • EdiSM Profile Picture
    52 on at

    Also , do you know  how to choose the the wanted option if you right click on an  excel file ? for example , to right click on excel and select compress, or open with, or something else ?

    I tried several times but i get an error like flow dosen't know to select what you have recorded.

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 269 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 184 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard