Skip to main content

Notifications

Community site session details

Community site session details

Session Id : hAjrZ5dkkHSu7Crtf97xZr
Power Automate - Building Flows
Answered

Delete specific sheet within excel with flow

Like (0) ShareShare
ReportReport
Posted on 23 Mar 2021 13:41:15 by

Hello!

 

Is Flow able to identify sheets in excel and delete the first two sheets and keep the third sheet in the workbook? .

  • Verified answer
    Yutao Huang Profile Picture
    Microsoft Employee on 23 Mar 2021 at 22:20:52
    Re: Delete specific sheet within excel with flow

    One possible workaround (though may need a lot more extra effort) is to use an HTTP action to send a request to the Microsoft Graph API to delete the worksheet.

     

    There information might be helpful:

     


    Ask me about Office Scripts | Check out my Twitter / GitHub

  • Community Power Platform Member Profile Picture
    on 23 Mar 2021 at 19:02:29
    Re: Delete specific sheet within excel with flow

    Thank you but unfortunately office scripts are blocked by my corporation rules..any other solution?

  • Yutao Huang Profile Picture
    Microsoft Employee on 23 Mar 2021 at 17:49:04
    Re: Delete specific sheet within excel with flow

    It might be worth checking out Office Scripts, through which you can write some simple script code to do things like deleting worksheets.

     

    Please check out these articles to learn more about Office Scripts:

     

    And specifically, the worksheet.delete() method:

    ExcelScript.Worksheet interface - Office Scripts | Microsoft Docs

     

     

    Hope this helps!

    Yutao


    Ask me about Office Scripts | Check out my Twitter / GitHub

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
Churchy Profile Picture

Churchy 6

#2
Chriddle Profile Picture

Chriddle 4 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 4

Overall leaderboard
Loading started
Loading complete