In IE, it's quite easy to "Open in Excel" a url to a file on a network or internet location. Is the same possible in Chrome though? The file must be opened from its current location, not from a downloaded copy. So when the user saves any changes, they save to the original location. IE Tab isn't an option either, we cant install chrome extensions.
Things I've tried:
1) Web protocol: "ms-excel:ofe|u"
<a href="ms-excel:ofe|u|//server/folder/Test.xls">Open in Excel</a>
2) ActiveX (I know it wouldnt work with Chrome, adding for completeness)
<input type=button onClick="test()" value="javascript solution">
<script type="text/javascript">
function test() {
var Excel = new ActiveXObject("Excel.Application");
Excel.Visible = true;
Excel.Workbooks.Open("//server/folder/Test.xls");
}
</script>
3) Direct link to the file:
<a href="//server/folder/Test.xls">Click</a><br />
This just downloads the file to the local machine and can be set to open as soon as it downloads, but changes are saved locally.
UPDATE: I've found that trying to access a file stored in sharepoint works using method 1 above.
<a href="ms-excel:ofe|u|http://sharepointserver/sites/rptserver/Test.xls">Open in Excel</a>
Any reason it would work for sharepoint files but not files stored in a network location?
UPDATE:
I've found documentation for the ms-excel:ofe|u|
web protocol which states that only http
and https
are supported.
*Bounty will only be awarded to answers to the specific question:
Is there any way to open a file in excel with chrome where the path to the file is a local or network storage location rather than a http/https url?
Go to “DATA” tab in the group of “CONNECTIONS”, and select “EDIT LINKS”. The dialog box of “Edit Links” will get appeared. To change the source of link, click on the button of “Change Source” in right side. When you click on “Open Source” then you can choose another file.
Click the Edit Workbook button then select Edit in Browser to open the spreadsheet in Excel Online. If you have Excel installed on your computer, you can select Edit in Excel to open the spreadsheet in traditional Excel and save the changes back to the web when you're done if you'd like, instead.
The most common reason for this problem: Excel won't open a file because the file is corrupted. This is especially common if Excel crashes while saving the file, or if a problematic macro prevents the file from being saved correctly.
Open "My Computer" and select "Folder Options" under the "View" menu. Select the "File Types" tab and find the icon that says Microsoft Excel Worksheet in the Registered File types. Check the box in the new window that says "Confirm open after download".
Neither does the excel application if the linking file is not open. So updating the source file does not cause any updating activity on any other unopened file that may be linked to the source file. 3) when the linking file is opened, Excel reads that the link exists and updates the data by going to the source file and getting the information.
You can then copy and paste the URL from the browser address bar back into Excel. Highlight the URL and press Ctrl + C to copy, then go back to Excel and press Ctrl + V to paste the URL into a new cell. Unfortunately, this is a very manual approach that involves switching back and forth between two applications.
Select the cell containing the hyperlink and press Ctrl + K to open the Edit Hyperlink menu. This will open the Edit Hyperlink menu and you can copy and paste the URL from the Address just like before. If you work with hyperlinks in Excel, you know that it can be a tedious task to extract the URL from each hyperlink.
No it is not possible for security reasons. All newer browsers (and I guess even the newer implementations of IE), don't allow file access to the local system. Internet Explorer is the only browser that supports opening files from locations, that are seen and treated as local ones.
You can open files from a Webdav Server, which is probably, why you can access files from your SharePoint, so you could try mapping that provider of your network drive as a Webdav Server.
Source: https://www.codeproject.com/Questions/1180249/Open-edit-save-excel-sheet-from-browser-using-java AND Is there an Application URL Protocol for MS Word?
You upload your excel on Google drive and people can use it from google sheets. Browser functionality is to download the copy of file to local Computer. You should use File server FTP server and other Protocols to actually edit file at source. There are Web file manager software which can give you ability to save file. Try Cloud version of software etc to save file in web page and see the version history too. GitHub can have Private repository too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With