Sharepoint page Button Web Part- I want linked document to open in desktop app

Occasional Contributor

On my Sharepoint page I am using the default Button web part and when clicked I want it to open the linked document in the desktop app and not in browser. I have Advanced settings set to 'Open in the client application', but the system produced link always opens in browser when using the Button web part. I changed the link to be like 'https://xxxxxxx.sharepont.com/Test/Purchase%20Request.xlsx', but it only downloads the document. The web part wont let me put ms-excel:ofe|u|  in front of the HTTPS in this web part either. 

Thanks in advance for anyone that knows how I can make this work. 

0 Replies