2

Even though solution to this might not be SharePoint related, but thought to ask here anyway in case someone has some thoughts.

I'd like to make it possible to open certain Excel macro-enabled spreadsheet file (located on shared network drive) in Excel (user's local Excel) via link in SharePoint site.

I made a link (e.g. in Navigation) to this file using following path*:

file://sharedDriveName/Disk_A/Data/INVEST2010/INVEST.xlam

Upon clicking, confirmation dialog popus up where you can click Open, Save, Save As or Cancel.

Dailog Box image: https://i.stack.imgur.com/g6iJJ.jpg

When you click Open it loads for a while and then crushes (Excel stopped responding). However if I first open Excel (just blank Excel without any file open) and then press that link in SharePoint, it loads and opens properly!

This macro enabled Excel file has macros that loads supporting files from the same folder (on shared drive). This is where something does not work when run from SharePoint Site or should I say from Internet Explorer. I can say that because I tested the same scenario with Excel file without macros, it loaded properly from SharePoint link even without having Excel open.

At the same time, if I run the same path* in Windows Start > Run (on any user's computer), the Excel with macros opens properly regardless of having had Excel open beforehand or not.

So far I am required to ask all users to start Excel first and then click the link in SharePoint, which is many clicks instead of one. Do you have any suggestions on how to overcome this issue?

I suspect it is some kind of Internet Explorer / Microsoft Excel security related issue. One of my ideas was trying to open Excel first by link ( file:///C:/Program%20Files/Microsoft%20Office/Office14/EXCEL.EXE ) and passing Excel file path as variable, but opening such link pointing to EXE file just does nothing (again the same link if Run from Start > Run opens Excel). FYI: I have tried adding the shared drive path to Local Intranet / Trusted Locations in Internet Explorer security settings, have been adding Trusted Publisher as well as Truested Path in Excel Trust Center settings, none of it had any effect.

Will be glad if someone can give a hint. Thanks.

3
  • Have you tried adding the network share as trusted location within your Excel (in Trust Center)?
    – Jussi Palo
    Feb 14, 2012 at 5:43
  • Yes and I mentioned it in the last paragraph :-) Did not have any effect.
    – SviFi
    Feb 14, 2012 at 10:13
  • just a thought, for Win7: try Adding Network Location (select My Computer > r-click > ...). Can't use drive letters, only UNC paths unfortunately. || For what it's worth, I get the same dialog you do, but after pressing Open the spreadsheet does open. Oct 3, 2012 at 17:22

2 Answers 2

1

If you still get this problem, try this: e.g if your site link is http://intranet.xx.com/docu/Company/Collaboration/SitePages/Home.aspx , where you added the excel links. In IE, goto tools > Internet options > Security > Trusted Sites, click Sites, Add http://intranet.xx.com (untick Require Server Verification (https:) for all ...)

0

I am not an Excel expert and this solution would make the question off topic. Further, I understand this may not be less clicks, but might be more straight forward for the user.

Save an excel file on SharePoint that WILL open in Excel. That document has nothing inside except a link/button to open the intended document from the shared drive. Excel would already be open so this should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.