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 / Regarding Loop failure...
Power Automate
Answered

Regarding Loop failure when executing certain operation on all Excel worksheets in the Excel Workbook

(0) ShareShare
ReportReport
Posted on by 231

Hi,

I have a Excel workbook with 31 worksheets. 

I have prepared a PAD flow, which shall delete certain cells of each worksheet in a Workbook (barring one Worksheet) and the screenshot of the same is enclosed below:-

Screenshot 2022-11-11 105153.png

 

Screenshot 2022-11-11 105249.png

However, when i run PAD, it is observed that the Loop is stuck on 1st Worksheet only and runs in this worksheet continuously for 31 times, but doesn't perform desired actions on other worksheets. 

Please help.

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    Your first action in the IF needs to be “Set Active Worksheet” to %CurrentItem%.

     

    Good luck!

  • SA_VOH Profile Picture
    231 on at

    Hi MichaelAnnis,

    Thanks for the reply and it worked.

    Thanks once again.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard