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 Automate
Answered

Excel File editing

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I created a desktop web recording of me editing an excel file that was in my downloads folder as a csv file.  After the script ran ie. added the formulas, hid the columns I am not using I saved the file and it would not change to xls.  So I tried saving as as a CSV and of course all of the formatting is gone.  Is there a way to save as an .xls file? 

OR my idea is that I first save the file as an xls first and then run the script.  However, the start of the script is looking for the csv file type.  How can I change where the desktop recording is pointing to without having to redo all the steps or save as an .xls?

I have the same question (0)
  • fraenK Profile Picture
    2,125 on at
  • elau Profile Picture
    Microsoft Employee on at

    Thanks for the suggestion.  The file I am using is a download of data (csv) from a website and I need to manipulate that data the same way every time.  The data is always different though, but the formatting is going to be the same.   It sounds like I can have the script open excel and the csv file and have the data moved over into the blank excel file and then manipulate, right?

     

     

  • Verified answer
    GeoffRen Profile Picture
    Microsoft Employee on at

    Have you considered using Office Scripts, specifically Office Scripts with Power Automate? This is the 'Run Script' action on the Excel connector for Cloud Flows. With Office Scripts you can use the 'Run Script' action to execute javascript against a workbook.

     

    Basically, instead of using PAD to record your script, if you're only trying to format an Excel file you can use Office Scripts to do so instead (you can use the recording in ExcelOnline to record your actions and modify the script as you wish). That way you can download the data as an xls and then run the Office Script on it to do the formatting.

  • elau Profile Picture
    Microsoft Employee on at

    Oh well.  Yay.  That works too.  I'm very new to this automation so these tips are very helpful.  I was able to figure it out on through power automate desktop, however, I will do it again with office scripts too and see which is better. 

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 241 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 179

#3
Haque Profile Picture

Haque 159

Last 30 days Overall leaderboard