cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PentaGalDad77
Frequent Visitor

PAD to refresh Power Query (aka Data/RefreshAll) via Send Keys

I have had limited success in using PAD to open an Excel file and perform a Data/RefreshAll function. It seems trivial, but has been problematic for me. 

 

My current approach is to use PAD's "Click UI element" function to select "Data" from the Excel Ribbon, then "RefreshAll". For some reason, PAD cannot consistently do this. My flows can go for days just fine (100% success rate) then start failing (less than 50% success rate). After trying many "fixes" I am now looking for an alternative approach. 

Instead I would like to try the hot-key for Data/RefreshAll which I understand to be <Ctrl><Alt><F5>. I believe the Send Key sequence should be coded as:

PentaGalDad77_0-1620842225808.png

If you can't read the image, the Text to Send value is: {Control}({Alt}({F5}))

 

This Send Key sequence is ignored when the flow executes. I have tried both "hardware key" options.

 

I also tried recording a macro which determined the Text to Send value should be: {LControlKey}({LMenu}({F5}))

This was ignored also. 

 

Appreciate any guidance.

0 REPLIES 0

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,217)