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 Platform Community / Forums / Power Automate / How to convert xls to ...
Power Automate
Unanswered

How to convert xls to xlsx using UI flow...

(1) ShareShare
ReportReport
Posted on by 52

 

I used below flow to convert multiple xls files into xlsx files , but didn't work at all.

Actually is not converting the file  in xlsx but into as you can see in the picture .

do you know what I did wrong ? or is another way to do it ?

EdiSM_1-1718183152025.png

 

 

EdiSM_0-1718183036111.png

 

I have the same question (0)
  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    I recommend using dedicated Excel -actions

    eetuRobo_1-1718183482539.png

     

    With Save Excel you could save it as .xlsx format

    eetuRobo_0-1718183465552.png

     

    eetuRobo_2-1718183664140.png

     

  • EdiSM Profile Picture
    52 on at

    I tried many times this way , but  doesn't work , it  not converts xls to xlsx , that's why i tried UI  flow.

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    Weird 🤔
    What happens when you do that? Does it create just another xls file? Or does it not create any file at all? Or does it create broken file/file with no extension/unknown extension as in your first posts image seems to?

    Just to make sure: after using Save Excel -action are you checking the new file it created and not the old xls one? The old .xls should still be there but there should be another file (where ever your action is setup to save it) that is in xlsx -format.

  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at

    Hi @EdiSM ,

     

    Try this below solution.

    VishnuReddy1997_0-1718190081552.pngVishnuReddy1997_1-1718190104429.png

     

    Code:

    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''C:\\Users\\\\Desktop\\Power Automate Desktop\\Projects\\TA_Report\\Macros\\inputexcel .xls''' Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.SaveExcel.SaveAs Instance: ExcelInstance DocumentFormat: Excel.ExcelFormat.OpenXmlWorkbook DocumentPath: $'''C:\\Users\\Desktop\\Notepad Files\\'''
    Excel.CloseExcel.Close Instance: ExcelInstance

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

  • EdiSM Profile Picture
    52 on at

    EdiSM_0-1718191048129.png

    Please take a look.  I tried but not working.

    For Close excel, you are using again save as ? or just save ? or not save ?

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    You should add .xlsx in the end.

    eetuRobo_0-1718191239754.png
    Like so:

    eetuRobo_2-1718191328149.png

     


    And in close Excel no need to save it again.

  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at

    Hi @EdiSM ,

     

    Please change the Excel name or folder in save excel in Document Path option.Because you have same name excel in the same folder.

    What error its throwing.Just share me the error screenshot.

    In Close excel I am not keeping it as Dont not save document.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

  • EdiSM Profile Picture
    52 on at

    actually this flow what does? take  the information from  Xls and put it into the xlsx ( that you created ) right?

    if so , then  how to manage it when you have 20  xls in  A folder  ? what flow to create in order to take 1 by one and make them xlsx ?

  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at

    Hi @EdiSM ,

     

    You need to Create 2 Folders For Input 1 Folder(FolderA) and For Output 1 Folder(FolderB).

    Then just try the below code.

    It will get all the files in FolderA.

    Convert all the Files in Folder A in Xls to Xlsv in Folder B

    Delete the Folder A Files and for Further use you can use Folder B files which are in .xlsx format.

    VishnuReddy1997_0-1718192979842.png

     

    Code:

    Folder.GetFiles Folder: $'''C:\\Users\\\\Desktop\\Projects\\FolderA''' FileFilter: $'''*''' IncludeSubfolders: False FailOnAccessDenied: True SortBy1: Folder.SortBy.NoSort SortDescending1: False SortBy2: Folder.SortBy.NoSort SortDescending2: False SortBy3: Folder.SortBy.NoSort SortDescending3: False Files=> Files
    LOOP FOREACH CurrentItem IN Files
     Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: CurrentItem.FullName Visible: True ReadOnly: False Instance=> ExcelInstance
     Excel.SaveExcel.SaveAs Instance: ExcelInstance DocumentFormat: Excel.ExcelFormat.OpenXmlWorkbook DocumentPath: $'''C:\\Users\\Desktop\\Projects\\FolderB\\%CurrentItem.NameWithoutExtension%'''
     Excel.CloseExcel.Close Instance: ExcelInstance
     File.Delete Files: CurrentItem.FullName
    END

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

     

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    Use Get files in folder -action. That gives you a list of files in the specified folder. Then use For each -loop to go through each one and save them in .xlsx
    Then optionally use Delete file(or Move file if you want to save them in another folder to archive them) to clear the folder from the old .xls files.

    eetuRobo_0-1718193545020.png

     

     

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard