Open excel file through normal html link

noa-dev picture noa-dev · Jul 17, 2015 · Viewed 52.8k times · Source

i am currently encountering an issue where I'd like to put a link to a shared excel sheet in our intranet. Unfortunately the normal href="http:..." link automatically opens and saves it to the local machine instead of enabling the work on the shared sheet which is on the server itself.

I have read through here a bit and found solutions like : file://///SERVER/PATH/Excel.xls but sadly that solution doesn't do anything.

If its relevant: my server version is Windows Server 2012

Answer

user916867 picture user916867 · Oct 24, 2018

You can tell browser to open with Excel (if installed) by adding ms-excel:ofe|u| in front of your Excel file Url.

<a href="ms-excel:ofe|u|http:...xls">Open in Excel</a>