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 / Opening Excel with Ext...
Power Automate
Answered

Opening Excel with External Links

(1) ShareShare
ReportReport
Posted on by

Hi all,

 

I am having trouble opening Excel files that contain external links that need to be updated with the Launch Excel function. I've tried to disable automatic link updates in Excel app and disallowing updates via Trust Center, but it still wants to update the links, but when it fails it gives popup messages that are not being handled by the Launch action. The only way to move forward is to close these popups manually.

Excel error1.pngExcel error2.png

 

Any ideas how to avoid these popups, close them automatically or disable them completely?

I have the same question (1)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Can you build a macro into the workbook:

     

    On Start

    Application.DisplayAlerts = False

     

    Good luck!

  • rolign Profile Picture
    on at

    I wish, but no, the files are created by business users and happen to be very random at times 🙂

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Did you try closing those windows by sending keys?

    First, assure Excel window is focused

    Then, in the first case, try Left Key + Enter and in second, just Enter.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    To add to @Anonymous 's suggestion, I assume they don't always pop up, so you could build something like "If Microsoft Excel Security Warning Window is up Send Keys {LShiftKey}({Tab}) {Return}, If Microsoft Excel Warning Window is up, then Send Keys {Return}.  If you can't find Window IDs then "If image exists" might be your best bet.

     

  • rolign Profile Picture
    on at

    This would be the first thing I would try, but it is not possible, as the popup boxes appear During the Launch Excel action, as in - it is not possible to do anything else, while it's attempting to open the file. Thinking about a script that runs separately from Power Automate and closes popup boxes automatically, currently, but still hope there could be some improvements to this Launch Excel action, something like - Close popups automatically.

  • Verified answer
    rolign Profile Picture
    on at

    I might have found a solution myself. It is actually possible to start the Excel via Powershell script, because then it opens without the popups. Afterwards all you need is just to Attach to the instance and continue with the steps.

  • Neha2904 Profile Picture
    94 on at

    Can you please share the powershell script?

  • Verified answer
    rolign Profile Picture
    on at

    # start Excel
    $excel = New-Object -comobject Excel.Application
    $excel.EnableEvents=$false
    $excel.DisplayAlerts = $false
    #open file
    $FilePath = %Filepath%
    $workbook = $excel.Workbooks.Open($FilePath)

    #make it visible (just to check what is happening)
    $excel.Visible = $true

  • Neha2904 Profile Picture
    94 on at

    Thanks for the response. I used the same with an additional  $excel.AskToUpdateLinks = $false.

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard