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 / PAD opens excels file ...
Power Automate
Answered

PAD opens excels file and turns auto-save off....?

(0) ShareShare
ReportReport
Posted on by

I have a file with auto-saved turned on, and I'm using "run application" to open it this file during a flow. When opened by PAD, however, the auto-save is turned off.... When I open the file myself, auto-save remains on. I've confirmed that PAD is opening the correct file from the correct folder (Sharepoint synced).

Is there anything I can do...?

Thanks in advance.

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

    MichaelAnnis_0-1716485326505.png

    Make sure when you make your button, you edit the UI element and change the window to "contains" "Excel" otherwise it will only work for the workbook you made it in instead of all Excel windows.

    Good luck!

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

    Hi @Murphys110 ,

     

    Unfortunately, there are no documented settings within PAD to directly control auto-save behavior for opened files.

    Instead of run application for opening an excel you can go with excel activities such as Launch excel,Close excel,Save Excel etc.

     

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


    Thanks & Regards

    Vishnu Reddy

  • Murphys110 Profile Picture
    on at

    Thanks Michael, and I may use that solution to toggle that switch... for now I'm just really curious as to why it would open "off" when it was saved "on", and only happens when PAD opens the file...

     

  • Murphys110 Profile Picture
    on at

    Thanks Vishnu, and I didn't know about "launch excel" (is that a newer feature?).. for now I'm just really curious as to why it would open "off" when it was saved "on", and only happens when PAD opens the file... 

    I did try the launch excel to see if the issue persists, and it does... odd...

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

    Hi @Murphys110 ,

     

    Launch excel is not a new action.You have lot of in built excel activities as shown in below image.

    VishnuReddy1997_0-1716487473774.png

     

    I have written a sample how to launch excel,read excel and close excel by saving it.Please find the below flow.

    VishnuReddy1997_1-1716487542178.png

     

    Code: 

    Please copy the below code to your flow.

    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''C:\\Users\\OneDrive\\Desktop\\Power Automate Desktop\\Practice\\Excel\\input.xlsx''' Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadAllCells Instance: ExcelInstance ReadAsText: False FirstLineIsHeader: True RangeValue=> ExcelData
    Excel.CloseExcel.CloseAndSave Instance: ExcelInstance

     

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


    Thanks & Regards

    Vishnu Reddy

     

     

     

  • Murphys110 Profile Picture
    on at

    Thanks again. Using your code to open the file still produced the same odd result (auto-save turned off). When I then toggle the switch to turn it back on, i'm prompted to select my one-drive login, and it then saves the file in the main directory folder and not the original sub-folder location..... thoughts?

  • Srini007 Profile Picture
    3,327 Super User 2025 Season 2 on at

    Hi @Murphys110 

     

    It's better to use Excel actions instead of using 'run application', As @VishnuReddy1997 suggest try Launch excel action and check

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Cheers,

    Srini

  • Murphys110 Profile Picture
    on at

    Thanks Srini. I did try that different method of opening the file with PAD flow, but with the same result (auto-save turned off). When I then toggle the switch to turn it back on, i'm prompted to select my one-drive login, and it then saves the file in the main directory folder and not the original sub-folder location..... thoughts?...

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Seems to me like you are opening your local version and not the onedrive version.  If you open the onedrive version, the folder will already be connected and the autosave should turn on.  If you are opening a local version, the onedrive is not linked which is why it's prompting you to link the onedrive when you switch it to true.

    Try the launch excel action again, but point the folderpath/filename.ext directly at the onedrive version.

    Good luck!

     

  • Murphys110 Profile Picture
    on at

    I wondered the same, but path is correct. After restarting the remote machine, the problem didn't recur... so I'm moving on. Thanks for your help!

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard