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 / Power Automate não atu...
Power Automate
Unanswered

Power Automate não atualiza corretamente conexões e tabela dinâmica no Excel

(0) ShareShare
ReportReport
Posted on by
Estou enfrentando um problema com a automação de um arquivo Excel via Power Automate. O arquivo contém dois scripts via "Automatizar" e "Gravar ação":
  1. Um script que clica no botão "Atualizar Tudo" para atualizar as conexões de dados.
  2. Outro script que atualiza a tabela dinâmica após um tempo de espera de 3 minutos (usando um timer), para garantir que os dados estejam atualizados antes da tabela ser recalculada.
A automação está configurada para rodar a cada 30 minutos. O Power Automate abre o arquivo, executa os scripts e salva/fecha. No entanto, percebo que a tabela dinâmica não reflete os dados atualizados, como se a atualização não tivesse sido concluída antes do fechamento do arquivo.
Minha hipótese inicial era que o Power Automate estava fechando o Excel antes da atualização terminar, por isso implementei o timer. Mesmo assim, o problema persiste.
Como garantir que o Power Automate aguarde a execução completa dos scripts VBA (incluindo o tempo de espera) antes de fechar o arquivo Excel? Existe alguma forma de sincronizar ou aguardar a finalização da macro antes de seguir para o próximo passo no fluxo?
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    on at
     
    Can you please verify for me, exactly how you are building your power automate scripts as there are no details related to that and thats important.
     
    Also, any delays, especially with excel should be 10 minutes, but I am not certain you need them in this case, but until I see the flow and details related to how it was built.

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 630

#2
Valantis Profile Picture

Valantis 420

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard