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 Apps / Force Excel documents ...
Power Apps
Answered

Force Excel documents in SP Library to open in Excel online

(0) ShareShare
ReportReport
Posted on by 174

I am using the Launch function in a button in PowerApps to open/launch an Excel (xlsx) file stored in a SharePoint library. It keeps opening in my desktop Excel, but I would like to force it to launch into Excel online. Is there a way to do this?

 

Launch("https://mycompany.sharepoint.com/sites/PTS/PTS_Documents/" & FileGallery.Selected.'File name with extension')

Categories:
  • 365-Assist Profile Picture
    2,327 Moderator on at

    This could be happing because of a setting in SharePoint. What happens when you manually open an excel file in SharePoint? Does it open in the App or the Web? If it opens in the App you may need to ask your SharePoint Administrator to change the default setting to open files in the Web version.

    ---------------------------------------------------
    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
    Twitter: https://twitter.com/assist_365

    Regards
    Darren Lutchner - 365 Assist

  • Mindea Profile Picture
    174 on at

    I have already set the library to default to open in the web version -- and it indeed does -- but PowerApps still opens it in desktop Excel.

  • 365-Assist Profile Picture
    2,327 Moderator on at

    In that case I think rather than open using Filename and extension you are going to have to use the full SharePoint URL. 

    Like this:

    365Assist_0-1679008075913.png

    You are probably going to want to have the docID as a variable that can be changed. 

    ---------------------------------------------------
    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
    Twitter: https://twitter.com/assist_365

    Regards
    Darren Lutchner - 365 Assist

  • Verified answer
    Mindea Profile Picture
    174 on at

    I guess I was making it harder than needed. This works great: Launch(AttachmentGallery.Selected.'Link to item')

     

    Thanks for your suggestions anyway.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard