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 Automate
Unanswered

Enter sendkey bug?

(0) ShareShare
ReportReport
Posted on by 409

In the 40-minute process, I used sendkey input ten times (as shown in the picture) to save the Excel file regularly, but after waiting seven times each time, I saw that PD entered S in the cell for no reason. Is this a bug?

pad06.png

I have the same question (0)
  • Gematria Profile Picture
    222 on at

    Hi.

    Why not just use the "Save Excel" Action?

     

    Gematria_0-1684833599780.png

     

     

    If you must use a Hotkey, try to enable them to be send as Hardware Keys instead.

     

    Gematria_1-1684833663820.png

     

  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @alee001 

     

    Is the action is under a loop condition? If so you could have debug that and check why the action is triggering after seven times

     

    Hope this may help you

     

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

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

     

    Thanks,

    Srini

  • alee001 Profile Picture
    409 on at

    My Excel file is not opened via PA (pre-opened), so I can't use save settings.

    [Send text as hardware keys] I don't know the difference between this option, let me try it.

  • alee001 Profile Picture
    409 on at

    My PA process is not looping, it is a program for 10 Excel files need save after each updated (a total of ten times).

    I wonder if the PA process is too fast to cause sendkey error? (wait seconds added)

  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @alee001 

     

    Yes, as you updated so it might be PA is trying to send key before the Excel instance is ready

     

    Thanks,

    Srini

     

  • Gematria Profile Picture
    222 on at

    If you know the File Names, you can Attach to the running instance and then save it.

     

     

    Gematria_0-1684847657760.png

    Even if you just know the folder location you could loop through the files in the folder, attach to each instance, do what you want to do and then save it in the end.

     

    Saves you using "Send Keys" and other scripting that is more prone to failing 🙂

  • alee001 Profile Picture
    409 on at

    I known your mean, but because Excel opening with PA restricts the use of userform in VBA, I choose to pre-opened Excel the process of recording UI elements. Sendkey Ctrl+S is the shortcut on progress.

  • alee001 Profile Picture
    409 on at

    Does the default delay of 10ms matter? How should it be adjusted?

    pad06a.png

  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @alee001 

     

    Maybe the static wait will not work. because it depends how fast the excel is getting ready to accept the next send keys action

     

    So I suggest you to check a UI Element in the Window and try using  wait for window / wait for window content to appear, So that I dynamically wait until the windows element is appeared

     

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

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

     

    Thanks,

    Srini

     

     

  • Gematria Profile Picture
    222 on at

    Fair enough. Attaching shouldnt care about that VBA you have running, as it will just attach to the process itself. Up to you 😉

     

    But changing to Send Text as Hardware Keys should be the fix for you. If thats not working, let me know

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
David_MA Profile Picture

David_MA 248 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 204

#3
Haque Profile Picture

Haque 179

Last 30 days Overall leaderboard