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 / Slow Focus Window Swit...
Power Automate
Suggested Answer

Slow Focus Window Switching

(0) ShareShare
ReportReport
Posted on by 381
I have 20 independent, open Excel2021 VBA files that need to execute buttons. After opening the PAD, I can only use UI elements or find the title to execute the focus window. Because the former's variable settings often fail, I choose the latter.

Since each VBA file's button has a progress window (execution time approximately several hours), there will eventually be 40 windows. However, I've noticed that the focus window switching becomes increasingly slow towards the end of the process, resulting in a 30-second wait before the button can be executed in the last window.
 
This problem didn't exist when using UI elements. Is this a flaw in the title-finding method? Are there any solutions or improvements? Thanks
I have the same question (0)
  • Suggested answer
    Assisted by AI
    Vahid Ghafarpour Profile Picture
    795 Super User 2026 Season 1 on at

    When PAD uses “Focus window by title”, it does not jump directly to the window.
    It must:
     

    • Enumerate all open windows
    • Compare each window’s title text
    • Apply fuzzy matching rules
    • Resolve duplicates
    • Bring the matched window to the foreground
     

    With 40 Excel windows, each with progress dialogs, PAD’s internal enumeration list becomes huge.
    As the list grows, the matching step becomes slower — often dramatically.

    This is why the slowdown appears toward the end, when the number of windows is at its maximum.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard