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 / Close and save documen...
Power Automate
Answered

Close and save document in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 27

My problem relates to the saving of Excel files in Power Automate Desktop.
The problem only started after 23-04-17 roughly .
Very simple flow will explain the problem
The flow : Launch Excel with an Excel file TEST.xlsm, then  Wait(3) and then Close the excel Instance with Save the document
TEST.xlsm has a macro :- for "This-Work-book "- Sub "Work-book-Open" and just a "message-box"("Testing")


I open and close TEST.xlsm directly in Excel or 2xclick from the explorer - No Problem.
If I run the flow, It runs Ok but.....
If I try and open TEST.xlsm It open ( I know because of the message), but there are no sheets and all functionality is disabled.

Any ideas?

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Crack-1703 

     

    Are you trying to say that when file TEST.xlsm is opened via PAD,  there are no sheets available inside that ?

  • Verified answer
    Riyaz_riz11 Profile Picture
    4,214 Super User 2026 Season 1 on at

    Hi @Crack-1703 

    If you facing like that challenges that you can able to try with different approaches as well.

    create a blank template and launch it and save that file into respective location.

     

    Regards

    Riyaz

     

    If it works please mark as a solution so others will help and tumps up

  • Crack-1703 Profile Picture
    27 on at
    Thank you for the reply., I am getting so anxious about this issue. It  has stopped all my development.
    Yes, So the TEST.xlsm works ok opening the file everything 100% until I use the flow. After the flow is run and closed, if I open TEST.xlsm directly from Excel the little msg appears but there are no sheets.
    Thanks for help
  • Crack-1703 Profile Picture
    27 on at

    Hi,  thank you, I have tried that.
    This issue started after 17th April, am I able to uninstall PAD and then install a previous version?

  • Crack-1703 Profile Picture
    27 on at

    Yes, - after the  running the flow, then opening TEST,xlsm using Excel.exe displays the message but then there are no sheets.  You can check the macro, but nothing else.

  • Riyaz_riz11 Profile Picture
    4,214 Super User 2026 Season 1 on at

    Yes you can install previous version as well.

  • Crack-1703 Profile Picture
    27 on at

    Thank you for your replies.  
    I have sorted out the issue.  I had a xlsm file with a macro but in PAD  - Launch Excel \ Advanced I had not selected "Nest under a new Excel Process".
    Thanks and take care

  • Crack-1703 Profile Picture
    27 on at

    Thank you for your replies.  
    I have sorted out the issue.  I had a xlsm file with a macro but in PAD  - Launch Excel \ Advanced I had not selected "Nest under a new Excel Process".
    Thanks and take care

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
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 210 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 175

Last 30 days Overall leaderboard